Skip to content

Commit 14503c4

Browse files
committed
Delete unused .eslintrc.js, using eslint.config.ts with new flat config
1 parent 4383bd0 commit 14503c4

1 file changed

Lines changed: 0 additions & 91 deletions

File tree

‎.eslintrc.js‎

Lines changed: 0 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -20,100 +20,9 @@ export default [
2020
securityPlugin.configs.recommended,
2121
...ymlPlugin.configs['flat/recommended'],
2222
{
23-
/** No globals are enabled for ESLint by default: 'writable', 'readonly', or 'off'. */
24-
globals: {
25-
NodeJS: 'readonly',
26-
},
27-
env: {
28-
browser: true,
29-
commonjs: true,
30-
es6: true,
31-
node: true,
32-
},
33-
languageOptions: {
34-
ecmaVersion: 'latest',
35-
sourceType: 'module',
36-
},
3723
rules: {
38-
/**
39-
* Common rule settings for all linted files
40-
*/
41-
'@typescript-eslint/ban-ts-comment': 'off',
42-
'@typescript-eslint/ban-types': level,
43-
'@typescript-eslint/consistent-type-assertions': [
44-
level,
45-
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' },
46-
],
47-
/**
48-
* Avoid un-fixable lint errors reported within .js/.jsx files
49-
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md
50-
*/
51-
'@typescript-eslint/explicit-module-boundary-types': 'off',
52-
'@typescript-eslint/no-unsafe-argument': 'off',
53-
'@typescript-eslint/no-non-null-assertion': 'off',
54-
'@typescript-eslint/no-unsafe-assignment': 'off',
55-
'@typescript-eslint/no-unsafe-call': 'off',
56-
'@typescript-eslint/no-unsafe-member-access': 'off',
57-
'@typescript-eslint/no-unsafe-return': 'off',
58-
'@typescript-eslint/no-unused-vars': [
59-
level,
60-
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
61-
],
62-
'@typescript-eslint/no-var-requires': level,
63-
/** Prohibits using a type assertion that does not change the type of an expression. */
64-
'@typescript-eslint/no-unnecessary-type-assertion': level,
65-
'@typescript-eslint/restrict-template-expressions': 'off',
66-
/** Continue allowing triple-slash refs, TS wants to use 'import' syntax instead */
67-
'@typescript-eslint/triple-slash-reference': 'off',
68-
/** Issue with Prettier https://github.com/prettier/eslint-plugin-prettier/issues/65: */
69-
'arrow-body-style': 'off',
70-
camelcase: [level],
71-
curly: [level, 'all'],
7224
/** eslint-plugin-comments */
7325
'eslint-comments/no-unused-disable': level,
74-
/** eslint-plugin-import */
75-
'import/no-unresolved': level,
76-
'import/no-webpack-loader-syntax': level,
77-
'import/order': 'off',
78-
/** eslint-plugin-jsdoc */
79-
'jsdoc/check-indentation': level,
80-
'jsdoc/check-line-alignment': level,
81-
'jsdoc/check-syntax': level,
82-
'jsdoc/check-tag-names': [
83-
level,
84-
{
85-
definedTags: ['NOTE:', 'TODO:', 'jest-environment', 'jest-environment-options'],
86-
jsxTags: true,
87-
},
88-
],
89-
/** Applies a regex to description so that it's text-only starting with a capital */
90-
'jsdoc/match-description': 'off',
91-
'jsdoc/no-bad-blocks': level,
92-
'jsdoc/no-defaults': level,
93-
'jsdoc/no-types': 'off',
94-
'jsdoc/require-jsdoc': 'off',
95-
'jsdoc/require-param': 'off',
96-
'jsdoc/require-param-type': 'off',
97-
'jsdoc/require-returns': 'off',
98-
'jsdoc/require-returns-type': 'off',
99-
/** JSDoc does not support import() for typedefs */
100-
'jsdoc/valid-types': 'off',
101-
'new-cap': [level, { newIsCap: true, capIsNew: false }],
102-
'no-new': level,
103-
'no-restricted-globals': ['error'].concat(restrictedGlobals),
104-
'no-unused-expressions': [level, { allowShortCircuit: true, allowTernary: true }],
105-
'no-unused-vars': [level, { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
106-
'no-useless-escape': 'off',
107-
/** Issue with Prettier https://github.com/prettier/eslint-plugin-prettier/issues/65: */
108-
'prefer-arrow-callback': 'off',
109-
'prefer-object-spread': level,
110-
'prefer-spread': level,
111-
/** Getting false positives on HTMLElement.classList.add/.remove methods */
112-
'security/detect-non-literal-fs-filename': 'off',
113-
'security/detect-object-injection': 'off',
114-
'security/detect-unsafe-regex': 'off',
115-
/** Too many false positives from using @TODO and no way to add add'l tags to rule */
116-
'tsdoc/syntax': 'off', // eslint-disable-line jsdoc/escape-inline-tags
11726
}
11827
}
11928
]

0 commit comments

Comments
 (0)