@jakubmazanec/eslint-config 1.3.1 → 2.0.0-5b1b7ef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.d.ts +0 -0
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/main.d.ts +0 -0
- package/dist/main.js +0 -0
- package/dist/main.js.map +1 -1
- package/dist/presets/base.d.ts +0 -0
- package/dist/presets/base.js +4 -4
- package/dist/presets/base.js.map +1 -1
- package/dist/presets/nextjs.d.ts +0 -0
- package/dist/presets/nextjs.js +0 -0
- package/dist/presets/nextjs.js.map +1 -1
- package/dist/presets/nodejs.d.ts +0 -0
- package/dist/presets/nodejs.js +0 -0
- package/dist/presets/nodejs.js.map +1 -1
- package/dist/presets/prettier.d.ts +0 -0
- package/dist/presets/prettier.js +0 -0
- package/dist/presets/prettier.js.map +1 -1
- package/dist/resolvers/graphql.d.ts +0 -0
- package/dist/resolvers/graphql.js +0 -0
- package/dist/resolvers/graphql.js.map +1 -1
- package/dist/rules/a11y.d.ts +0 -0
- package/dist/rules/a11y.js +1 -1
- package/dist/rules/a11y.js.map +1 -1
- package/dist/rules/eslint-comments.d.ts +0 -0
- package/dist/rules/eslint-comments.js +0 -0
- package/dist/rules/eslint-comments.js.map +1 -1
- package/dist/rules/eslint.d.ts +0 -0
- package/dist/rules/eslint.js +19 -10
- package/dist/rules/eslint.js.map +1 -1
- package/dist/rules/import.d.ts +0 -0
- package/dist/rules/import.js +3 -3
- package/dist/rules/import.js.map +1 -1
- package/dist/rules/jest-formatting.d.ts +0 -0
- package/dist/rules/jest-formatting.js +0 -0
- package/dist/rules/jest-formatting.js.map +1 -1
- package/dist/rules/jest.d.ts +0 -0
- package/dist/rules/jest.js +4 -1
- package/dist/rules/jest.js.map +1 -1
- package/dist/rules/nextjs.d.ts +0 -0
- package/dist/rules/nextjs.js +0 -0
- package/dist/rules/nextjs.js.map +1 -1
- package/dist/rules/node.d.ts +0 -0
- package/dist/rules/node.js +1 -1
- package/dist/rules/node.js.map +1 -1
- package/dist/rules/prettier.d.ts +0 -0
- package/dist/rules/prettier.js +0 -0
- package/dist/rules/prettier.js.map +1 -1
- package/dist/rules/promise.d.ts +0 -0
- package/dist/rules/promise.js +2 -1
- package/dist/rules/promise.js.map +1 -1
- package/dist/rules/react-hooks.d.ts +0 -0
- package/dist/rules/react-hooks.js +0 -0
- package/dist/rules/react-hooks.js.map +1 -1
- package/dist/rules/react.d.ts +0 -0
- package/dist/rules/react.js +5 -5
- package/dist/rules/react.js.map +1 -1
- package/dist/rules/testing-library.d.ts +0 -0
- package/dist/rules/testing-library.js +0 -0
- package/dist/rules/testing-library.js.map +1 -1
- package/dist/rules/typescript.d.ts +0 -0
- package/dist/rules/typescript.js +20 -19
- package/dist/rules/typescript.js.map +1 -1
- package/dist/rules/unicorn.d.ts +0 -0
- package/dist/rules/unicorn.js +6 -1
- package/dist/rules/unicorn.js.map +1 -1
- package/package.json +17 -17
- package/src/rules/eslint.ts +3 -0
- package/src/rules/jest.ts +4 -1
- package/src/rules/promise.ts +4 -3
- package/src/rules/typescript.ts +2 -1
- package/src/rules/unicorn.ts +2 -0
package/dist/constants.d.ts
CHANGED
|
File without changes
|
package/dist/constants.js
CHANGED
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/constants.ts"],"sourcesContent":["export const JS_AND_TS_EXTENSIONS = [\n '.ts',\n '.tsx',\n '.cts',\n '.mts',\n '.js',\n '.jsx',\n '.cjs',\n '.mjs',\n '.json',\n];\n\nexport const JS_EXTENSIONS_GLOB_PART = '{js,jsx,cjs,mjs}';\nexport const TS_EXTENSIONS_GLOB_PART = '{ts,tsx,cts,mts}';\nexport const JS_AND_TS_EXTENSIONS_GLOB_PART = '{js,jsx,cjs,mjs,ts,tsx,cts,mts}';\n\nexport const JS_AND_TS_EXTENSIONS_REGEXP = /\\.(js|jsx|cjs|mjs|ts|tsx|cts|mts)$/;\nexport const ASSET_EXTENSIONS_REGEXP = /\\.(ttf|eot|otf|svg|woff|woff2|mp3|png|jpg|jpeg|gif|ico)$/;\nexport const CSS_EXTENSIONS_REGEXP = /\\.(css|scss)$/;\nexport const GRAPHQL_EXTENSIONS_REGEXP = /\\.(gql|graphql)$/;\n"],"names":["JS_AND_TS_EXTENSIONS","JS_EXTENSIONS_GLOB_PART","TS_EXTENSIONS_GLOB_PART","JS_AND_TS_EXTENSIONS_GLOB_PART","JS_AND_TS_EXTENSIONS_REGEXP","ASSET_EXTENSIONS_REGEXP","CSS_EXTENSIONS_REGEXP","GRAPHQL_EXTENSIONS_REGEXP"],"mappings":"AAAA;;;;;;;;IAAaA,oBAAoB,MAApBA
|
|
1
|
+
{"version":3,"sources":["../src/constants.ts"],"sourcesContent":["export const JS_AND_TS_EXTENSIONS = [\n '.ts',\n '.tsx',\n '.cts',\n '.mts',\n '.js',\n '.jsx',\n '.cjs',\n '.mjs',\n '.json',\n];\n\nexport const JS_EXTENSIONS_GLOB_PART = '{js,jsx,cjs,mjs}';\nexport const TS_EXTENSIONS_GLOB_PART = '{ts,tsx,cts,mts}';\nexport const JS_AND_TS_EXTENSIONS_GLOB_PART = '{js,jsx,cjs,mjs,ts,tsx,cts,mts}';\n\nexport const JS_AND_TS_EXTENSIONS_REGEXP = /\\.(js|jsx|cjs|mjs|ts|tsx|cts|mts)$/;\nexport const ASSET_EXTENSIONS_REGEXP = /\\.(ttf|eot|otf|svg|woff|woff2|mp3|png|jpg|jpeg|gif|ico)$/;\nexport const CSS_EXTENSIONS_REGEXP = /\\.(css|scss)$/;\nexport const GRAPHQL_EXTENSIONS_REGEXP = /\\.(gql|graphql)$/;\n"],"names":["JS_AND_TS_EXTENSIONS","JS_EXTENSIONS_GLOB_PART","TS_EXTENSIONS_GLOB_PART","JS_AND_TS_EXTENSIONS_GLOB_PART","JS_AND_TS_EXTENSIONS_REGEXP","ASSET_EXTENSIONS_REGEXP","CSS_EXTENSIONS_REGEXP","GRAPHQL_EXTENSIONS_REGEXP"],"mappings":"AAAA;;;;;;;;IAAaA,oBAAoB,MAApBA;IAYAC,uBAAuB,MAAvBA;IACAC,uBAAuB,MAAvBA;IACAC,8BAA8B,MAA9BA;IAEAC,2BAA2B,MAA3BA;IACAC,uBAAuB,MAAvBA;IACAC,qBAAqB,MAArBA;IACAC,yBAAyB,MAAzBA;;AAnBN,MAAMP,uBAAuB;IAClC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAEM,MAAMC,0BAA0B;AAChC,MAAMC,0BAA0B;AAChC,MAAMC,iCAAiC;AAEvC,MAAMC,8BAA8B;AACpC,MAAMC,0BAA0B;AAChC,MAAMC,wBAAwB;AAC9B,MAAMC,4BAA4B"}
|
package/dist/main.d.ts
CHANGED
|
File without changes
|
package/dist/main.js
CHANGED
|
File without changes
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/main.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nlet config: eslint.Linter.Config = {\n extends: [require.resolve('./presets/base.js')],\n\n reportUnusedDisableDirectives: true,\n\n // We can't define rules here otherwise they override the ones in the extending configs above. This is bad for actual `overrides`!\n rules: {},\n};\n\nexport = config;\n"],"names":["config","extends","require","resolve","reportUnusedDisableDirectives","rules"],"mappings":"AAAA;AAEA,IAAIA,
|
|
1
|
+
{"version":3,"sources":["../src/main.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nlet config: eslint.Linter.Config = {\n extends: [require.resolve('./presets/base.js')],\n\n reportUnusedDisableDirectives: true,\n\n // We can't define rules here otherwise they override the ones in the extending configs above. This is bad for actual `overrides`!\n rules: {},\n};\n\nexport = config;\n"],"names":["config","extends","require","resolve","reportUnusedDisableDirectives","rules"],"mappings":"AAAA;AAEA,IAAIA,SAA+B;IACjCC,SAAS;QAACC,QAAQC,OAAO,CAAC;KAAqB;IAE/CC,+BAA+B,IAAI;IAEnC,kIAAkI;IAClIC,OAAO,CAAC;AACV;iBAESL"}
|
package/dist/presets/base.d.ts
CHANGED
|
File without changes
|
package/dist/presets/base.js
CHANGED
|
@@ -62,7 +62,7 @@ const config = {
|
|
|
62
62
|
"\\.json$",
|
|
63
63
|
_constants.ASSET_EXTENSIONS_REGEXP.source,
|
|
64
64
|
_constants.CSS_EXTENSIONS_REGEXP.source,
|
|
65
|
-
_constants.GRAPHQL_EXTENSIONS_REGEXP.source
|
|
65
|
+
_constants.GRAPHQL_EXTENSIONS_REGEXP.source
|
|
66
66
|
],
|
|
67
67
|
react: {
|
|
68
68
|
version: "detect"
|
|
@@ -154,10 +154,10 @@ const config = {
|
|
|
154
154
|
`**/*.test.${_constants.JS_AND_TS_EXTENSIONS_GLOB_PART}`,
|
|
155
155
|
`tests/**/*.${_constants.JS_AND_TS_EXTENSIONS_GLOB_PART}`,
|
|
156
156
|
`tools/**/*.${_constants.JS_AND_TS_EXTENSIONS_GLOB_PART}`,
|
|
157
|
-
`./*.${_constants.JS_AND_TS_EXTENSIONS_GLOB_PART}
|
|
157
|
+
`./*.${_constants.JS_AND_TS_EXTENSIONS_GLOB_PART}`
|
|
158
158
|
],
|
|
159
159
|
optionalDependencies: false
|
|
160
|
-
}
|
|
160
|
+
}
|
|
161
161
|
]
|
|
162
162
|
}
|
|
163
163
|
},
|
|
@@ -170,7 +170,7 @@ const config = {
|
|
|
170
170
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
171
171
|
"@typescript-eslint/no-floating-promises": "off"
|
|
172
172
|
}
|
|
173
|
-
}
|
|
173
|
+
}
|
|
174
174
|
]
|
|
175
175
|
};
|
|
176
176
|
module.exports = config;
|
package/dist/presets/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/presets/base.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport {\n ASSET_EXTENSIONS_REGEXP,\n CSS_EXTENSIONS_REGEXP,\n GRAPHQL_EXTENSIONS_REGEXP,\n JS_AND_TS_EXTENSIONS,\n JS_AND_TS_EXTENSIONS_GLOB_PART,\n TS_EXTENSIONS_GLOB_PART,\n} from '../constants';\nimport a11yRules from '../rules/a11y';\nimport eslintRules from '../rules/eslint';\nimport commentsRules from '../rules/eslint-comments';\nimport importRules from '../rules/import';\nimport jestRules from '../rules/jest';\nimport jestFormattingRules from '../rules/jest-formatting';\nimport promiseRules from '../rules/promise';\nimport reactRules from '../rules/react';\nimport reactHooksRules from '../rules/react-hooks';\nimport testingLibraryRules from '../rules/testing-library';\nimport typescriptRules from '../rules/typescript';\nimport unicornRules from '../rules/unicorn';\n\nconst config: eslint.Linter.Config = {\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n },\n plugins: ['import', 'react', 'react-hooks', 'jsx-a11y', 'eslint-comments', 'promise', 'unicorn'],\n env: {\n browser: true,\n es2020: true,\n worker: true,\n serviceworker: true,\n },\n globals: {\n __DEV__: 'readonly',\n\n // metrics and analytics providers\n ga: 'readonly',\n newrelic: 'readonly',\n\n // mostly for easier compatibility between browsers, workers, etc\n global: 'readonly',\n\n // mostly references to `process.env.NODE_ENV`\n process: 'readonly',\n\n // references for globalThis\n globalThis: 'readonly',\n\n // Webpack variables\n __webpack_public_path__: 'writeable',\n __webpack_require__: 'readonly',\n __webpack_chunk_load__: 'readonly',\n __webpack_modules__: 'readonly',\n __webpack_hash__: 'readonly',\n __non_webpack_require__: 'readonly',\n __webpack_exports_info__: 'readonly',\n DEBUG: 'readonly',\n },\n settings: {\n 'import/ignore': [\n 'node_modules',\n '\\\\.json$',\n ASSET_EXTENSIONS_REGEXP.source,\n CSS_EXTENSIONS_REGEXP.source,\n GRAPHQL_EXTENSIONS_REGEXP.source,\n ],\n react: {\n version: 'detect',\n },\n propWrapperFunctions: ['forbidExtraProps', 'exact', 'Object.freeze'],\n },\n\n rules: {\n ...eslintRules,\n ...commentsRules,\n ...promiseRules,\n ...importRules,\n ...reactRules,\n ...reactHooksRules,\n ...a11yRules,\n ...unicornRules,\n },\n overrides: [\n {\n files: [`*.test.${JS_AND_TS_EXTENSIONS_GLOB_PART}`],\n\n plugins: ['jest', 'jest-formatting', 'testing-library'],\n\n settings: {\n 'testing-library/custom-queries': 'off',\n 'testing-library/custom-renders': 'off',\n 'testing-library/utils-module': 'off',\n },\n\n globals: {\n jsdom: 'readonly',\n },\n\n env: {\n jest: true,\n node: true,\n },\n rules: {\n ...jestRules,\n ...jestFormattingRules,\n ...testingLibraryRules,\n\n // override ESLint rules\n 'max-classes-per-file': 'off', // enforce a maximum number of classes per file\n\n // override eslint-plugin-node rules\n 'node/no-sync': 'off', // disallow synchronous methods\n },\n },\n {\n files: [`*.${TS_EXTENSIONS_GLOB_PART}`],\n\n plugins: ['@typescript-eslint'],\n\n parser: '@typescript-eslint/parser',\n\n parserOptions: {\n project: 'tsconfig.typecheck.json',\n // Fixed issue with webstorm\n tsconfigRootDir: process.cwd(),\n },\n\n settings: {\n node: {\n tryExtensions: JS_AND_TS_EXTENSIONS,\n },\n 'import/resolver': {\n typescript: {},\n },\n 'import/parsers': {\n '@typescript-eslint/parser': ['.ts', '.tsx', '.mts', '.cts'],\n },\n },\n rules: {\n ...typescriptRules,\n\n // override eslint-plugin-import rules\n 'import/no-extraneous-dependencies': [\n 'error',\n {\n devDependencies: [\n `**/*.test.${JS_AND_TS_EXTENSIONS_GLOB_PART}`,\n `tests/**/*.${JS_AND_TS_EXTENSIONS_GLOB_PART}`,\n `tools/**/*.${JS_AND_TS_EXTENSIONS_GLOB_PART}`,\n `./*.${JS_AND_TS_EXTENSIONS_GLOB_PART}`,\n ],\n optionalDependencies: false,\n },\n ],\n },\n },\n {\n files: [`*.test.${TS_EXTENSIONS_GLOB_PART}`],\n rules: {\n // override @typescript-eslint/eslint-plugin rules\n '@typescript-eslint/ban-ts-comment': 'off', // bans // @ts-<directive> comments from being used\n '@typescript-eslint/no-floating-promises': 'off', // requires Promise-like values to be handled appropriately\n },\n },\n ],\n};\n\nexport = config;\n"],"names":["config","parserOptions","ecmaVersion","sourceType","ecmaFeatures","jsx","plugins","env","browser","es2020","worker","serviceworker","globals","__DEV__","ga","newrelic","global","process","globalThis","__webpack_public_path__","__webpack_require__","__webpack_chunk_load__","__webpack_modules__","__webpack_hash__","__non_webpack_require__","__webpack_exports_info__","DEBUG","settings","ASSET_EXTENSIONS_REGEXP","source","CSS_EXTENSIONS_REGEXP","GRAPHQL_EXTENSIONS_REGEXP","react","version","propWrapperFunctions","rules","eslintRules","commentsRules","promiseRules","importRules","reactRules","reactHooksRules","a11yRules","unicornRules","overrides","files","JS_AND_TS_EXTENSIONS_GLOB_PART","jsdom","jest","node","jestRules","jestFormattingRules","testingLibraryRules","TS_EXTENSIONS_GLOB_PART","parser","project","tsconfigRootDir","cwd","tryExtensions","JS_AND_TS_EXTENSIONS","typescript","typescriptRules","devDependencies","optionalDependencies"],"mappings":"AAAA;2BASO
|
|
1
|
+
{"version":3,"sources":["../../src/presets/base.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport {\n ASSET_EXTENSIONS_REGEXP,\n CSS_EXTENSIONS_REGEXP,\n GRAPHQL_EXTENSIONS_REGEXP,\n JS_AND_TS_EXTENSIONS,\n JS_AND_TS_EXTENSIONS_GLOB_PART,\n TS_EXTENSIONS_GLOB_PART,\n} from '../constants';\nimport a11yRules from '../rules/a11y';\nimport eslintRules from '../rules/eslint';\nimport commentsRules from '../rules/eslint-comments';\nimport importRules from '../rules/import';\nimport jestRules from '../rules/jest';\nimport jestFormattingRules from '../rules/jest-formatting';\nimport promiseRules from '../rules/promise';\nimport reactRules from '../rules/react';\nimport reactHooksRules from '../rules/react-hooks';\nimport testingLibraryRules from '../rules/testing-library';\nimport typescriptRules from '../rules/typescript';\nimport unicornRules from '../rules/unicorn';\n\nconst config: eslint.Linter.Config = {\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n },\n plugins: ['import', 'react', 'react-hooks', 'jsx-a11y', 'eslint-comments', 'promise', 'unicorn'],\n env: {\n browser: true,\n es2020: true,\n worker: true,\n serviceworker: true,\n },\n globals: {\n __DEV__: 'readonly',\n\n // metrics and analytics providers\n ga: 'readonly',\n newrelic: 'readonly',\n\n // mostly for easier compatibility between browsers, workers, etc\n global: 'readonly',\n\n // mostly references to `process.env.NODE_ENV`\n process: 'readonly',\n\n // references for globalThis\n globalThis: 'readonly',\n\n // Webpack variables\n __webpack_public_path__: 'writeable',\n __webpack_require__: 'readonly',\n __webpack_chunk_load__: 'readonly',\n __webpack_modules__: 'readonly',\n __webpack_hash__: 'readonly',\n __non_webpack_require__: 'readonly',\n __webpack_exports_info__: 'readonly',\n DEBUG: 'readonly',\n },\n settings: {\n 'import/ignore': [\n 'node_modules',\n '\\\\.json$',\n ASSET_EXTENSIONS_REGEXP.source,\n CSS_EXTENSIONS_REGEXP.source,\n GRAPHQL_EXTENSIONS_REGEXP.source,\n ],\n react: {\n version: 'detect',\n },\n propWrapperFunctions: ['forbidExtraProps', 'exact', 'Object.freeze'],\n },\n\n rules: {\n ...eslintRules,\n ...commentsRules,\n ...promiseRules,\n ...importRules,\n ...reactRules,\n ...reactHooksRules,\n ...a11yRules,\n ...unicornRules,\n },\n overrides: [\n {\n files: [`*.test.${JS_AND_TS_EXTENSIONS_GLOB_PART}`],\n\n plugins: ['jest', 'jest-formatting', 'testing-library'],\n\n settings: {\n 'testing-library/custom-queries': 'off',\n 'testing-library/custom-renders': 'off',\n 'testing-library/utils-module': 'off',\n },\n\n globals: {\n jsdom: 'readonly',\n },\n\n env: {\n jest: true,\n node: true,\n },\n rules: {\n ...jestRules,\n ...jestFormattingRules,\n ...testingLibraryRules,\n\n // override ESLint rules\n 'max-classes-per-file': 'off', // enforce a maximum number of classes per file\n\n // override eslint-plugin-node rules\n 'node/no-sync': 'off', // disallow synchronous methods\n },\n },\n {\n files: [`*.${TS_EXTENSIONS_GLOB_PART}`],\n\n plugins: ['@typescript-eslint'],\n\n parser: '@typescript-eslint/parser',\n\n parserOptions: {\n project: 'tsconfig.typecheck.json',\n // Fixed issue with webstorm\n tsconfigRootDir: process.cwd(),\n },\n\n settings: {\n node: {\n tryExtensions: JS_AND_TS_EXTENSIONS,\n },\n 'import/resolver': {\n typescript: {},\n },\n 'import/parsers': {\n '@typescript-eslint/parser': ['.ts', '.tsx', '.mts', '.cts'],\n },\n },\n rules: {\n ...typescriptRules,\n\n // override eslint-plugin-import rules\n 'import/no-extraneous-dependencies': [\n 'error',\n {\n devDependencies: [\n `**/*.test.${JS_AND_TS_EXTENSIONS_GLOB_PART}`,\n `tests/**/*.${JS_AND_TS_EXTENSIONS_GLOB_PART}`,\n `tools/**/*.${JS_AND_TS_EXTENSIONS_GLOB_PART}`,\n `./*.${JS_AND_TS_EXTENSIONS_GLOB_PART}`,\n ],\n optionalDependencies: false,\n },\n ],\n },\n },\n {\n files: [`*.test.${TS_EXTENSIONS_GLOB_PART}`],\n rules: {\n // override @typescript-eslint/eslint-plugin rules\n '@typescript-eslint/ban-ts-comment': 'off', // bans // @ts-<directive> comments from being used\n '@typescript-eslint/no-floating-promises': 'off', // requires Promise-like values to be handled appropriately\n },\n },\n ],\n};\n\nexport = config;\n"],"names":["config","parserOptions","ecmaVersion","sourceType","ecmaFeatures","jsx","plugins","env","browser","es2020","worker","serviceworker","globals","__DEV__","ga","newrelic","global","process","globalThis","__webpack_public_path__","__webpack_require__","__webpack_chunk_load__","__webpack_modules__","__webpack_hash__","__non_webpack_require__","__webpack_exports_info__","DEBUG","settings","ASSET_EXTENSIONS_REGEXP","source","CSS_EXTENSIONS_REGEXP","GRAPHQL_EXTENSIONS_REGEXP","react","version","propWrapperFunctions","rules","eslintRules","commentsRules","promiseRules","importRules","reactRules","reactHooksRules","a11yRules","unicornRules","overrides","files","JS_AND_TS_EXTENSIONS_GLOB_PART","jsdom","jest","node","jestRules","jestFormattingRules","testingLibraryRules","TS_EXTENSIONS_GLOB_PART","parser","project","tsconfigRootDir","cwd","tryExtensions","JS_AND_TS_EXTENSIONS","typescript","typescriptRules","devDependencies","optionalDependencies"],"mappings":"AAAA;2BASO;sBACe;wBACE;gCACE;wBACF;sBACF;gCACU;yBACP;uBACF;4BACK;gCACI;4BACJ;yBACH;AAEzB,MAAMA,SAA+B;IACnCC,eAAe;QACbC,aAAa;QACbC,YAAY;QACZC,cAAc;YACZC,KAAK,IAAI;QACX;IACF;IACAC,SAAS;QAAC;QAAU;QAAS;QAAe;QAAY;QAAmB;QAAW;KAAU;IAChGC,KAAK;QACHC,SAAS,IAAI;QACbC,QAAQ,IAAI;QACZC,QAAQ,IAAI;QACZC,eAAe,IAAI;IACrB;IACAC,SAAS;QACPC,SAAS;QAET,kCAAkC;QAClCC,IAAI;QACJC,UAAU;QAEV,iEAAiE;QACjEC,QAAQ;QAER,8CAA8C;QAC9CC,SAAS;QAET,4BAA4B;QAC5BC,YAAY;QAEZ,oBAAoB;QACpBC,yBAAyB;QACzBC,qBAAqB;QACrBC,wBAAwB;QACxBC,qBAAqB;QACrBC,kBAAkB;QAClBC,yBAAyB;QACzBC,0BAA0B;QAC1BC,OAAO;IACT;IACAC,UAAU;QACR,iBAAiB;YACf;YACA;YACAC,kCAAuB,CAACC,MAAM;YAC9BC,gCAAqB,CAACD,MAAM;YAC5BE,oCAAyB,CAACF,MAAM;SACjC;QACDG,OAAO;YACLC,SAAS;QACX;QACAC,sBAAsB;YAAC;YAAoB;YAAS;SAAgB;IACtE;IAEAC,OAAO;QACL,GAAGC,eAAW;QACd,GAAGC,uBAAa;QAChB,GAAGC,gBAAY;QACf,GAAGC,eAAW;QACd,GAAGC,cAAU;QACb,GAAGC,mBAAe;QAClB,GAAGC,aAAS;QACZ,GAAGC,gBAAY;IACjB;IACAC,WAAW;QACT;YACEC,OAAO;gBAAC,CAAC,OAAO,EAAEC,yCAA8B,CAAC,CAAC;aAAC;YAEnDxC,SAAS;gBAAC;gBAAQ;gBAAmB;aAAkB;YAEvDqB,UAAU;gBACR,kCAAkC;gBAClC,kCAAkC;gBAClC,gCAAgC;YAClC;YAEAf,SAAS;gBACPmC,OAAO;YACT;YAEAxC,KAAK;gBACHyC,MAAM,IAAI;gBACVC,MAAM,IAAI;YACZ;YACAd,OAAO;gBACL,GAAGe,aAAS;gBACZ,GAAGC,uBAAmB;gBACtB,GAAGC,uBAAmB;gBAEtB,wBAAwB;gBACxB,wBAAwB;gBAExB,oCAAoC;gBACpC,gBAAgB;YAClB;QACF;QACA;YACEP,OAAO;gBAAC,CAAC,EAAE,EAAEQ,kCAAuB,CAAC,CAAC;aAAC;YAEvC/C,SAAS;gBAAC;aAAqB;YAE/BgD,QAAQ;YAERrD,eAAe;gBACbsD,SAAS;gBACT,4BAA4B;gBAC5BC,iBAAiBvC,QAAQwC,GAAG;YAC9B;YAEA9B,UAAU;gBACRsB,MAAM;oBACJS,eAAeC,+BAAoB;gBACrC;gBACA,mBAAmB;oBACjBC,YAAY,CAAC;gBACf;gBACA,kBAAkB;oBAChB,6BAA6B;wBAAC;wBAAO;wBAAQ;wBAAQ;qBAAO;gBAC9D;YACF;YACAzB,OAAO;gBACL,GAAG0B,mBAAe;gBAElB,sCAAsC;gBACtC,qCAAqC;oBACnC;oBACA;wBACEC,iBAAiB;4BACf,CAAC,UAAU,EAAEhB,yCAA8B,CAAC,CAAC;4BAC7C,CAAC,WAAW,EAAEA,yCAA8B,CAAC,CAAC;4BAC9C,CAAC,WAAW,EAAEA,yCAA8B,CAAC,CAAC;4BAC9C,CAAC,IAAI,EAAEA,yCAA8B,CAAC,CAAC;yBACxC;wBACDiB,sBAAsB,KAAK;oBAC7B;iBACD;YACH;QACF;QACA;YACElB,OAAO;gBAAC,CAAC,OAAO,EAAEQ,kCAAuB,CAAC,CAAC;aAAC;YAC5ClB,OAAO;gBACL,kDAAkD;gBAClD,qCAAqC;gBACrC,2CAA2C;YAC7C;QACF;KACD;AACH;iBAESnC"}
|
package/dist/presets/nextjs.d.ts
CHANGED
|
File without changes
|
package/dist/presets/nextjs.js
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/presets/nextjs.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport nextjsRules from '../rules/nextjs';\n\nconst config: eslint.Linter.Config = {\n plugins: ['@next/next'],\n rules: {\n ...nextjsRules,\n },\n};\n\nexport = config;\n"],"names":["config","plugins","rules","nextjsRules"],"mappings":"AAAA;wBAEwB
|
|
1
|
+
{"version":3,"sources":["../../src/presets/nextjs.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport nextjsRules from '../rules/nextjs';\n\nconst config: eslint.Linter.Config = {\n plugins: ['@next/next'],\n rules: {\n ...nextjsRules,\n },\n};\n\nexport = config;\n"],"names":["config","plugins","rules","nextjsRules"],"mappings":"AAAA;wBAEwB;AAExB,MAAMA,SAA+B;IACnCC,SAAS;QAAC;KAAa;IACvBC,OAAO;QACL,GAAGC,eAAW;IAChB;AACF;iBAESH"}
|
package/dist/presets/nodejs.d.ts
CHANGED
|
File without changes
|
package/dist/presets/nodejs.js
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/presets/nodejs.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport nodeRules from '../rules/node';\n\nconst config: eslint.Linter.Config = {\n plugins: ['node'],\n env: {\n browser: false,\n node: true,\n },\n globals: {\n // ECMAScript\n ArrayBuffer: 'readonly',\n Atomics: 'readonly',\n BigInt: 'readonly',\n BigInt64Array: 'readonly',\n BigUint64Array: 'readonly',\n DataView: 'readonly',\n Float32Array: 'readonly',\n Float64Array: 'readonly',\n Int16Array: 'readonly',\n Int32Array: 'readonly',\n Int8Array: 'readonly',\n Map: 'readonly',\n Promise: 'readonly',\n Proxy: 'readonly',\n Reflect: 'readonly',\n Set: 'readonly',\n SharedArrayBuffer: 'readonly',\n Symbol: 'readonly',\n Uint16Array: 'readonly',\n Uint32Array: 'readonly',\n Uint8Array: 'readonly',\n Uint8ClampedArray: 'readonly',\n WeakMap: 'readonly',\n WeakSet: 'readonly',\n\n // ECMAScript (experimental)\n globalThis: 'readonly',\n\n // ECMA-402\n Intl: 'readonly',\n\n // Web Standard\n TextDecoder: 'readonly',\n TextEncoder: 'readonly',\n URL: 'readonly',\n URLSearchParams: 'readonly',\n WebAssembly: 'readonly',\n clearInterval: 'readonly',\n clearTimeout: 'readonly',\n console: 'readonly',\n queueMicrotask: 'readonly',\n setInterval: 'readonly',\n setTimeout: 'readonly',\n\n // Node.js\n Buffer: 'readonly',\n GLOBAL: 'readonly',\n clearImmediate: 'readonly',\n global: 'readonly',\n process: 'readonly',\n root: 'readonly',\n setImmediate: 'readonly',\n\n // Other\n __dirname: false,\n __filename: false,\n exports: false,\n module: false,\n require: false,\n },\n\n settings: {\n node: {\n tryExtensions: ['.js', '.jsx', '.json', '.mjs', '.cjs'],\n },\n convertPath: {\n 'src/**/*.ts': ['^src/(.+?)\\\\.ts$', 'lib/$1.js'],\n 'src/**/*.tsx': ['^src/(.+?)\\\\.tsx$', 'lib/$1.js'],\n 'src/**/*.mts': ['^src/(.+?)\\\\.ts$', 'esm/$1.js'],\n 'src/**/*.cts': ['^src/(.+?)\\\\.tsx$', 'lib/$1.js'],\n },\n },\n rules: {\n ...nodeRules,\n },\n};\n\nexport = config;\n"],"names":["config","plugins","env","browser","node","globals","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","DataView","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Map","Promise","Proxy","Reflect","Set","SharedArrayBuffer","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","WeakMap","WeakSet","globalThis","Intl","TextDecoder","TextEncoder","URL","URLSearchParams","WebAssembly","clearInterval","clearTimeout","console","queueMicrotask","setInterval","setTimeout","Buffer","GLOBAL","clearImmediate","global","process","root","setImmediate","__dirname","__filename","exports","module","require","settings","tryExtensions","convertPath","rules","nodeRules"],"mappings":"AAAA;sBAEsB
|
|
1
|
+
{"version":3,"sources":["../../src/presets/nodejs.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport nodeRules from '../rules/node';\n\nconst config: eslint.Linter.Config = {\n plugins: ['node'],\n env: {\n browser: false,\n node: true,\n },\n globals: {\n // ECMAScript\n ArrayBuffer: 'readonly',\n Atomics: 'readonly',\n BigInt: 'readonly',\n BigInt64Array: 'readonly',\n BigUint64Array: 'readonly',\n DataView: 'readonly',\n Float32Array: 'readonly',\n Float64Array: 'readonly',\n Int16Array: 'readonly',\n Int32Array: 'readonly',\n Int8Array: 'readonly',\n Map: 'readonly',\n Promise: 'readonly',\n Proxy: 'readonly',\n Reflect: 'readonly',\n Set: 'readonly',\n SharedArrayBuffer: 'readonly',\n Symbol: 'readonly',\n Uint16Array: 'readonly',\n Uint32Array: 'readonly',\n Uint8Array: 'readonly',\n Uint8ClampedArray: 'readonly',\n WeakMap: 'readonly',\n WeakSet: 'readonly',\n\n // ECMAScript (experimental)\n globalThis: 'readonly',\n\n // ECMA-402\n Intl: 'readonly',\n\n // Web Standard\n TextDecoder: 'readonly',\n TextEncoder: 'readonly',\n URL: 'readonly',\n URLSearchParams: 'readonly',\n WebAssembly: 'readonly',\n clearInterval: 'readonly',\n clearTimeout: 'readonly',\n console: 'readonly',\n queueMicrotask: 'readonly',\n setInterval: 'readonly',\n setTimeout: 'readonly',\n\n // Node.js\n Buffer: 'readonly',\n GLOBAL: 'readonly',\n clearImmediate: 'readonly',\n global: 'readonly',\n process: 'readonly',\n root: 'readonly',\n setImmediate: 'readonly',\n\n // Other\n __dirname: false,\n __filename: false,\n exports: false,\n module: false,\n require: false,\n },\n\n settings: {\n node: {\n tryExtensions: ['.js', '.jsx', '.json', '.mjs', '.cjs'],\n },\n convertPath: {\n 'src/**/*.ts': ['^src/(.+?)\\\\.ts$', 'lib/$1.js'],\n 'src/**/*.tsx': ['^src/(.+?)\\\\.tsx$', 'lib/$1.js'],\n 'src/**/*.mts': ['^src/(.+?)\\\\.ts$', 'esm/$1.js'],\n 'src/**/*.cts': ['^src/(.+?)\\\\.tsx$', 'lib/$1.js'],\n },\n },\n rules: {\n ...nodeRules,\n },\n};\n\nexport = config;\n"],"names":["config","plugins","env","browser","node","globals","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","DataView","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Map","Promise","Proxy","Reflect","Set","SharedArrayBuffer","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","WeakMap","WeakSet","globalThis","Intl","TextDecoder","TextEncoder","URL","URLSearchParams","WebAssembly","clearInterval","clearTimeout","console","queueMicrotask","setInterval","setTimeout","Buffer","GLOBAL","clearImmediate","global","process","root","setImmediate","__dirname","__filename","exports","module","require","settings","tryExtensions","convertPath","rules","nodeRules"],"mappings":"AAAA;sBAEsB;AAEtB,MAAMA,SAA+B;IACnCC,SAAS;QAAC;KAAO;IACjBC,KAAK;QACHC,SAAS,KAAK;QACdC,MAAM,IAAI;IACZ;IACAC,SAAS;QACP,aAAa;QACbC,aAAa;QACbC,SAAS;QACTC,QAAQ;QACRC,eAAe;QACfC,gBAAgB;QAChBC,UAAU;QACVC,cAAc;QACdC,cAAc;QACdC,YAAY;QACZC,YAAY;QACZC,WAAW;QACXC,KAAK;QACLC,SAAS;QACTC,OAAO;QACPC,SAAS;QACTC,KAAK;QACLC,mBAAmB;QACnBC,QAAQ;QACRC,aAAa;QACbC,aAAa;QACbC,YAAY;QACZC,mBAAmB;QACnBC,SAAS;QACTC,SAAS;QAET,4BAA4B;QAC5BC,YAAY;QAEZ,WAAW;QACXC,MAAM;QAEN,eAAe;QACfC,aAAa;QACbC,aAAa;QACbC,KAAK;QACLC,iBAAiB;QACjBC,aAAa;QACbC,eAAe;QACfC,cAAc;QACdC,SAAS;QACTC,gBAAgB;QAChBC,aAAa;QACbC,YAAY;QAEZ,UAAU;QACVC,QAAQ;QACRC,QAAQ;QACRC,gBAAgB;QAChBC,QAAQ;QACRC,SAAS;QACTC,MAAM;QACNC,cAAc;QAEd,QAAQ;QACRC,WAAW,KAAK;QAChBC,YAAY,KAAK;QACjBC,SAAS,KAAK;QACdC,QAAQ,KAAK;QACbC,SAAS,KAAK;IAChB;IAEAC,UAAU;QACRnD,MAAM;YACJoD,eAAe;gBAAC;gBAAO;gBAAQ;gBAAS;gBAAQ;aAAO;QACzD;QACAC,aAAa;YACX,eAAe;gBAAC;gBAAoB;aAAY;YAChD,gBAAgB;gBAAC;gBAAqB;aAAY;YAClD,gBAAgB;gBAAC;gBAAoB;aAAY;YACjD,gBAAgB;gBAAC;gBAAqB;aAAY;QACpD;IACF;IACAC,OAAO;QACL,GAAGC,aAAS;IACd;AACF;iBAES3D"}
|
|
File without changes
|
package/dist/presets/prettier.js
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/presets/prettier.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport prettierRules from '../rules/prettier';\n\nconst config: eslint.Linter.Config = {\n extends: ['eslint-config-prettier'],\n plugins: ['eslint-plugin-prettier'],\n rules: {\n ...prettierRules,\n },\n};\n\nexport = config;\n"],"names":["config","extends","plugins","rules","prettierRules"],"mappings":"AAAA;0BAE0B
|
|
1
|
+
{"version":3,"sources":["../../src/presets/prettier.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport prettierRules from '../rules/prettier';\n\nconst config: eslint.Linter.Config = {\n extends: ['eslint-config-prettier'],\n plugins: ['eslint-plugin-prettier'],\n rules: {\n ...prettierRules,\n },\n};\n\nexport = config;\n"],"names":["config","extends","plugins","rules","prettierRules"],"mappings":"AAAA;0BAE0B;AAE1B,MAAMA,SAA+B;IACnCC,SAAS;QAAC;KAAyB;IACnCC,SAAS;QAAC;KAAyB;IACnCC,OAAO;QACL,GAAGC,iBAAa;IAClB;AACF;iBAESJ"}
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/resolvers/graphql.ts"],"sourcesContent":["import {GRAPHQL_EXTENSIONS_REGEXP} from '../constants';\n\nexport const interfaceVersion = 2;\n\nexport function resolve(source: string): {found: boolean; path?: unknown} {\n if (GRAPHQL_EXTENSIONS_REGEXP.test(source)) {\n return {found: true, path: null};\n }\n\n return {found: false};\n}\n"],"names":["interfaceVersion","resolve","source","GRAPHQL_EXTENSIONS_REGEXP","test","found","path"],"mappings":"AAAA;;;;;;;;IAEaA,gBAAgB,MAAhBA
|
|
1
|
+
{"version":3,"sources":["../../src/resolvers/graphql.ts"],"sourcesContent":["import {GRAPHQL_EXTENSIONS_REGEXP} from '../constants';\n\nexport const interfaceVersion = 2;\n\nexport function resolve(source: string): {found: boolean; path?: unknown} {\n if (GRAPHQL_EXTENSIONS_REGEXP.test(source)) {\n return {found: true, path: null};\n }\n\n return {found: false};\n}\n"],"names":["interfaceVersion","resolve","source","GRAPHQL_EXTENSIONS_REGEXP","test","found","path"],"mappings":"AAAA;;;;;;;;IAEaA,gBAAgB,MAAhBA;IAEGC,OAAO,MAAPA;;2BAJwB;AAEjC,MAAMD,mBAAmB;AAEzB,SAASC,QAAQC,MAAc,EAAoC;IACxE,IAAIC,oCAAyB,CAACC,IAAI,CAACF,SAAS;QAC1C,OAAO;YAACG,OAAO,IAAI;YAAEC,MAAM,IAAI;QAAA;IACjC,CAAC;IAED,OAAO;QAACD,OAAO,KAAK;IAAA;AACtB"}
|
package/dist/rules/a11y.d.ts
CHANGED
|
File without changes
|
package/dist/rules/a11y.js
CHANGED
package/dist/rules/a11y.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/rules/a11y.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nconst config: eslint.Linter.Config['rules'] = {\n // eslint-plugin-jsx-a11y rules\n 'jsx-a11y/alt-text': 'warn', // enforce all elements that require alternative text have meaningful information to relay back to end user\n 'jsx-a11y/anchor-has-content': ['warn', {components: ['Link']}], // enforce all anchors to contain accessible content\n 'jsx-a11y/anchor-is-valid': [\n 'error',\n {\n components: ['Link'],\n specialLink: ['hrefLeft', 'hrefRight', 'to'],\n },\n ], // enforce all anchors are valid, navigable elements\n 'jsx-a11y/aria-activedescendant-has-tabindex': 'warn', // enforce elements with aria-active descendant are tab-able\n 'jsx-a11y/aria-props': 'error', // enforce all aria-* props are valid\n 'jsx-a11y/aria-proptypes': 'error', // enforce ARIA state and property values are valid\n 'jsx-a11y/aria-role': ['error', {ignoreNonDOM: false}], // enforce that elements with ARIA roles must use a valid, non-abstract ARIA role\n 'jsx-a11y/aria-unsupported-elements': 'error', // enforce that elements that do not support ARIA roles, states, and properties do not have those attributes\n 'jsx-a11y/autocomplete-valid': 'warn', // enforce that autocomplete attributes are used correctly.\n 'jsx-a11y/click-events-have-key-events': 'warn', // enforce a clickable non-interactive element has at least one keyboard event listener\n 'jsx-a11y/control-has-associated-label': 'warn', // enforce that a control (an interactive element) has a text label\n 'jsx-a11y/heading-has-content': ['warn', {components: ['Typography']}], // enforce heading (h1, h2, etc) elements contain accessible content\n 'jsx-a11y/html-has-lang': 'warn', // enforce <html> element has lang prop\n 'jsx-a11y/iframe-has-title': 'warn', // enforce iframe elements have a title attribute\n 'jsx-a11y/img-redundant-alt': 'warn', // enforce <img> alt prop does not contain the word \"image\", \"picture\", or \"photo\"\n 'jsx-a11y/interactive-supports-focus': 'warn', // enforce that elements with interactive handlers like onClick must be focusable\n 'jsx-a11y/label-has-associated-control': 'warn', // enforce that a label tag has a text label and an associated control\n 'jsx-a11y/lang': 'error', // enforce lang attribute has a valid value\n 'jsx-a11y/media-has-caption': 'warn', // enforces that <audio> and <video> elements must have a <track> for captions\n 'jsx-a11y/mouse-events-have-key-events': 'warn', // enforce that onMouseOver/onMouseOut are accompanied by onFocus/onBlur for keyboard-only users\n 'jsx-a11y/no-access-key': 'warn', // enforce that the accessKey prop is not used on any element to avoid complications with keyboard commands used by a screen reader\n 'jsx-a11y/no-autofocus': 'off', // enforce autoFocus prop is not used\n 'jsx-a11y/no-distracting-elements': 'error', // enforce distracting elements are not used\n 'jsx-a11y/no-interactive-element-to-noninteractive-role': 'warn', // interactive elements should not be assigned non-interactive roles\n 'jsx-a11y/no-noninteractive-element-interactions': 'warn', // non-interactive elements should not be assigned mouse or keyboard event listeners\n 'jsx-a11y/no-noninteractive-element-to-interactive-role': 'warn', // Non-interactive elements should not be assigned interactive roles\n 'jsx-a11y/no-noninteractive-tabindex': 'error', // tabIndex should only be declared on interactive elements\n 'jsx-a11y/no-redundant-roles': 'error', // enforce explicit role property is not the same as implicit/default role property on element\n 'jsx-a11y/no-static-element-interactions': 'warn', // enforce that non-interactive, visible elements (such as <div>) that have click handlers use the role attribute\n 'jsx-a11y/role-has-required-aria-props': 'error', // enforce that elements with ARIA roles must have all required attributes for that role\n 'jsx-a11y/role-supports-aria-props': 'error', // enforce that elements with explicit or implicit roles defined contain only aria-* properties supported by that role\n 'jsx-a11y/scope': 'error', // enforce scope prop is only used on <th> elements\n 'jsx-a11y/tabindex-no-positive': 'error', // enforce tabIndex value is not greater than zero\n};\n\nexport default config;\n"],"names":["config","components","specialLink","ignoreNonDOM"],"mappings":"AAAA;+BA6CA
|
|
1
|
+
{"version":3,"sources":["../../src/rules/a11y.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nconst config: eslint.Linter.Config['rules'] = {\n // eslint-plugin-jsx-a11y rules\n 'jsx-a11y/alt-text': 'warn', // enforce all elements that require alternative text have meaningful information to relay back to end user\n 'jsx-a11y/anchor-has-content': ['warn', {components: ['Link']}], // enforce all anchors to contain accessible content\n 'jsx-a11y/anchor-is-valid': [\n 'error',\n {\n components: ['Link'],\n specialLink: ['hrefLeft', 'hrefRight', 'to'],\n },\n ], // enforce all anchors are valid, navigable elements\n 'jsx-a11y/aria-activedescendant-has-tabindex': 'warn', // enforce elements with aria-active descendant are tab-able\n 'jsx-a11y/aria-props': 'error', // enforce all aria-* props are valid\n 'jsx-a11y/aria-proptypes': 'error', // enforce ARIA state and property values are valid\n 'jsx-a11y/aria-role': ['error', {ignoreNonDOM: false}], // enforce that elements with ARIA roles must use a valid, non-abstract ARIA role\n 'jsx-a11y/aria-unsupported-elements': 'error', // enforce that elements that do not support ARIA roles, states, and properties do not have those attributes\n 'jsx-a11y/autocomplete-valid': 'warn', // enforce that autocomplete attributes are used correctly.\n 'jsx-a11y/click-events-have-key-events': 'warn', // enforce a clickable non-interactive element has at least one keyboard event listener\n 'jsx-a11y/control-has-associated-label': 'warn', // enforce that a control (an interactive element) has a text label\n 'jsx-a11y/heading-has-content': ['warn', {components: ['Typography']}], // enforce heading (h1, h2, etc) elements contain accessible content\n 'jsx-a11y/html-has-lang': 'warn', // enforce <html> element has lang prop\n 'jsx-a11y/iframe-has-title': 'warn', // enforce iframe elements have a title attribute\n 'jsx-a11y/img-redundant-alt': 'warn', // enforce <img> alt prop does not contain the word \"image\", \"picture\", or \"photo\"\n 'jsx-a11y/interactive-supports-focus': 'warn', // enforce that elements with interactive handlers like onClick must be focusable\n 'jsx-a11y/label-has-associated-control': 'warn', // enforce that a label tag has a text label and an associated control\n 'jsx-a11y/lang': 'error', // enforce lang attribute has a valid value\n 'jsx-a11y/media-has-caption': 'warn', // enforces that <audio> and <video> elements must have a <track> for captions\n 'jsx-a11y/mouse-events-have-key-events': 'warn', // enforce that onMouseOver/onMouseOut are accompanied by onFocus/onBlur for keyboard-only users\n 'jsx-a11y/no-access-key': 'warn', // enforce that the accessKey prop is not used on any element to avoid complications with keyboard commands used by a screen reader\n 'jsx-a11y/no-autofocus': 'off', // enforce autoFocus prop is not used\n 'jsx-a11y/no-distracting-elements': 'error', // enforce distracting elements are not used\n 'jsx-a11y/no-interactive-element-to-noninteractive-role': 'warn', // interactive elements should not be assigned non-interactive roles\n 'jsx-a11y/no-noninteractive-element-interactions': 'warn', // non-interactive elements should not be assigned mouse or keyboard event listeners\n 'jsx-a11y/no-noninteractive-element-to-interactive-role': 'warn', // Non-interactive elements should not be assigned interactive roles\n 'jsx-a11y/no-noninteractive-tabindex': 'error', // tabIndex should only be declared on interactive elements\n 'jsx-a11y/no-redundant-roles': 'error', // enforce explicit role property is not the same as implicit/default role property on element\n 'jsx-a11y/no-static-element-interactions': 'warn', // enforce that non-interactive, visible elements (such as <div>) that have click handlers use the role attribute\n 'jsx-a11y/role-has-required-aria-props': 'error', // enforce that elements with ARIA roles must have all required attributes for that role\n 'jsx-a11y/role-supports-aria-props': 'error', // enforce that elements with explicit or implicit roles defined contain only aria-* properties supported by that role\n 'jsx-a11y/scope': 'error', // enforce scope prop is only used on <th> elements\n 'jsx-a11y/tabindex-no-positive': 'error', // enforce tabIndex value is not greater than zero\n};\n\nexport default config;\n"],"names":["config","components","specialLink","ignoreNonDOM"],"mappings":"AAAA;+BA6CA;;aAAA;;AA3CA,MAAMA,SAAwC;IAC5C,+BAA+B;IAC/B,qBAAqB;IACrB,+BAA+B;QAAC;QAAQ;YAACC,YAAY;gBAAC;aAAO;QAAA;KAAE;IAC/D,4BAA4B;QAC1B;QACA;YACEA,YAAY;gBAAC;aAAO;YACpBC,aAAa;gBAAC;gBAAY;gBAAa;aAAK;QAC9C;KACD;IACD,+CAA+C;IAC/C,uBAAuB;IACvB,2BAA2B;IAC3B,sBAAsB;QAAC;QAAS;YAACC,cAAc,KAAK;QAAA;KAAE;IACtD,sCAAsC;IACtC,+BAA+B;IAC/B,yCAAyC;IACzC,yCAAyC;IACzC,gCAAgC;QAAC;QAAQ;YAACF,YAAY;gBAAC;aAAa;QAAA;KAAE;IACtE,0BAA0B;IAC1B,6BAA6B;IAC7B,8BAA8B;IAC9B,uCAAuC;IACvC,yCAAyC;IACzC,iBAAiB;IACjB,8BAA8B;IAC9B,yCAAyC;IACzC,0BAA0B;IAC1B,yBAAyB;IACzB,oCAAoC;IACpC,0DAA0D;IAC1D,mDAAmD;IACnD,0DAA0D;IAC1D,uCAAuC;IACvC,+BAA+B;IAC/B,2CAA2C;IAC3C,yCAAyC;IACzC,qCAAqC;IACrC,kBAAkB;IAClB,iCAAiC;AACnC;MAEA,WAAeD"}
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/rules/eslint-comments.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nconst config: eslint.Linter.Config['rules'] = {\n // eslint-plugin-eslint-comments rules\n 'eslint-comments/disable-enable-pair': ['error', {allowWholeFile: true}], // require a eslint-enable comment for every eslint-disable comment\n 'eslint-comments/no-aggregating-enable': 'error', // disallow a eslint-enable comment for multiple eslint-disable comments\n 'eslint-comments/no-duplicate-disable': 'error', // disallow duplicate eslint-disable comments\n 'eslint-comments/no-restricted-disable': 'off', // disallow eslint-disable comments about specific rules\n 'eslint-comments/no-unlimited-disable': 'error', // disallow eslint-disable comments without rule names\n 'eslint-comments/no-unused-disable': 'off', // disallow unused eslint-disable comments\n 'eslint-comments/no-unused-enable': 'error', // disallow unused eslint-enable comments\n 'eslint-comments/no-use': 'off', // disallow ESLint directive-comments\n 'eslint-comments/require-description': ['error', {ignore: ['eslint-enable']}], // require include descriptions in ESLint directive-comments\n};\n\nexport default config;\n"],"names":["config","allowWholeFile","ignore"],"mappings":"AAAA;+BAeA
|
|
1
|
+
{"version":3,"sources":["../../src/rules/eslint-comments.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nconst config: eslint.Linter.Config['rules'] = {\n // eslint-plugin-eslint-comments rules\n 'eslint-comments/disable-enable-pair': ['error', {allowWholeFile: true}], // require a eslint-enable comment for every eslint-disable comment\n 'eslint-comments/no-aggregating-enable': 'error', // disallow a eslint-enable comment for multiple eslint-disable comments\n 'eslint-comments/no-duplicate-disable': 'error', // disallow duplicate eslint-disable comments\n 'eslint-comments/no-restricted-disable': 'off', // disallow eslint-disable comments about specific rules\n 'eslint-comments/no-unlimited-disable': 'error', // disallow eslint-disable comments without rule names\n 'eslint-comments/no-unused-disable': 'off', // disallow unused eslint-disable comments\n 'eslint-comments/no-unused-enable': 'error', // disallow unused eslint-enable comments\n 'eslint-comments/no-use': 'off', // disallow ESLint directive-comments\n 'eslint-comments/require-description': ['error', {ignore: ['eslint-enable']}], // require include descriptions in ESLint directive-comments\n};\n\nexport default config;\n"],"names":["config","allowWholeFile","ignore"],"mappings":"AAAA;+BAeA;;aAAA;;AAbA,MAAMA,SAAwC;IAC5C,sCAAsC;IACtC,uCAAuC;QAAC;QAAS;YAACC,gBAAgB,IAAI;QAAA;KAAE;IACxE,yCAAyC;IACzC,wCAAwC;IACxC,yCAAyC;IACzC,wCAAwC;IACxC,qCAAqC;IACrC,oCAAoC;IACpC,0BAA0B;IAC1B,uCAAuC;QAAC;QAAS;YAACC,QAAQ;gBAAC;aAAgB;QAAA;KAAE;AAC/E;MAEA,WAAeF"}
|
package/dist/rules/eslint.d.ts
CHANGED
|
File without changes
|
package/dist/rules/eslint.js
CHANGED
|
@@ -101,7 +101,7 @@ const config = {
|
|
|
101
101
|
"Boolean",
|
|
102
102
|
"boolean",
|
|
103
103
|
"Undefined",
|
|
104
|
-
"undefined"
|
|
104
|
+
"undefined"
|
|
105
105
|
],
|
|
106
106
|
"id-length": "off",
|
|
107
107
|
"id-match": "off",
|
|
@@ -121,6 +121,13 @@ const config = {
|
|
|
121
121
|
exceptAfterSingleLine: true
|
|
122
122
|
}
|
|
123
123
|
],
|
|
124
|
+
"logical-assignment-operators": [
|
|
125
|
+
"warn",
|
|
126
|
+
"always",
|
|
127
|
+
{
|
|
128
|
+
enforceForIfStatements: true
|
|
129
|
+
}
|
|
130
|
+
],
|
|
124
131
|
"max-classes-per-file": [
|
|
125
132
|
"warn",
|
|
126
133
|
1
|
|
@@ -185,6 +192,7 @@ const config = {
|
|
|
185
192
|
"no-extra-label": "error",
|
|
186
193
|
"no-extra-parens": "off",
|
|
187
194
|
"no-extra-semi": "off",
|
|
195
|
+
"no-empty-static-block": "error",
|
|
188
196
|
"no-fallthrough": "error",
|
|
189
197
|
"no-floating-decimal": "off",
|
|
190
198
|
"no-func-assign": "error",
|
|
@@ -217,6 +225,7 @@ const config = {
|
|
|
217
225
|
"no-nested-ternary": "error",
|
|
218
226
|
"no-new": "error",
|
|
219
227
|
"no-new-func": "error",
|
|
228
|
+
"no-new-native-nonconstructor": "error",
|
|
220
229
|
"no-new-object": "error",
|
|
221
230
|
"no-new-symbol": "error",
|
|
222
231
|
"no-new-wrappers": "error",
|
|
@@ -235,9 +244,9 @@ const config = {
|
|
|
235
244
|
"request",
|
|
236
245
|
"response",
|
|
237
246
|
"$scope",
|
|
238
|
-
"staticContext"
|
|
247
|
+
"staticContext"
|
|
239
248
|
]
|
|
240
|
-
}
|
|
249
|
+
}
|
|
241
250
|
],
|
|
242
251
|
"no-plusplus": [
|
|
243
252
|
"error",
|
|
@@ -256,7 +265,7 @@ const config = {
|
|
|
256
265
|
restrictedNamedExports: [
|
|
257
266
|
"then"
|
|
258
267
|
]
|
|
259
|
-
}
|
|
268
|
+
}
|
|
260
269
|
],
|
|
261
270
|
"no-restricted-globals": [
|
|
262
271
|
"error",
|
|
@@ -268,7 +277,7 @@ const config = {
|
|
|
268
277
|
name: "isNaN",
|
|
269
278
|
message: "Use Number.isNaN instead"
|
|
270
279
|
},
|
|
271
|
-
..._confusingBrowserGlobals
|
|
280
|
+
..._confusingBrowserGlobals
|
|
272
281
|
],
|
|
273
282
|
"no-restricted-imports": "off",
|
|
274
283
|
"no-restricted-properties": [
|
|
@@ -320,7 +329,7 @@ const config = {
|
|
|
320
329
|
object: "Math",
|
|
321
330
|
property: "pow",
|
|
322
331
|
message: "Use the exponentiation operator (**) instead."
|
|
323
|
-
}
|
|
332
|
+
}
|
|
324
333
|
],
|
|
325
334
|
"no-restricted-syntax": "off",
|
|
326
335
|
"no-return-assign": "error",
|
|
@@ -374,7 +383,7 @@ const config = {
|
|
|
374
383
|
allowShortCircuit: true,
|
|
375
384
|
allowTernary: true,
|
|
376
385
|
enforceForJSX: true
|
|
377
|
-
}
|
|
386
|
+
}
|
|
378
387
|
],
|
|
379
388
|
"no-unused-labels": "error",
|
|
380
389
|
"no-unused-private-class-members": "error",
|
|
@@ -448,7 +457,7 @@ const config = {
|
|
|
448
457
|
blankLine: "any",
|
|
449
458
|
prev: "import",
|
|
450
459
|
next: "import"
|
|
451
|
-
}
|
|
460
|
+
}
|
|
452
461
|
],
|
|
453
462
|
"prefer-arrow-callback": "error",
|
|
454
463
|
"prefer-const": "off",
|
|
@@ -466,7 +475,7 @@ const config = {
|
|
|
466
475
|
},
|
|
467
476
|
{
|
|
468
477
|
enforceForRenamedProperties: false
|
|
469
|
-
}
|
|
478
|
+
}
|
|
470
479
|
],
|
|
471
480
|
"prefer-exponentiation-operator": "error",
|
|
472
481
|
"prefer-named-capture-group": "off",
|
|
@@ -508,7 +517,7 @@ const config = {
|
|
|
508
517
|
"multiple"
|
|
509
518
|
],
|
|
510
519
|
allowSeparatedGroups: true
|
|
511
|
-
}
|
|
520
|
+
}
|
|
512
521
|
],
|
|
513
522
|
"sort-keys": "off",
|
|
514
523
|
"sort-vars": "off",
|
package/dist/rules/eslint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/rules/eslint.ts"],"sourcesContent":["import * as confusingBrowserGlobals from 'confusing-browser-globals';\nimport type eslint from 'eslint';\n\nconst config: eslint.Linter.Config['rules'] = {\n // ESLint rules\n 'accessor-pairs': 'off', // enforce getter and setter pairs in objects and classes\n 'array-bracket-newline': 'off', // enforce linebreaks after opening and before closing array brackets\n 'array-bracket-spacing': 'off', // enforce consistent spacing inside array brackets\n 'array-callback-return': ['error', {allowImplicit: true}], // enforce return statements in callbacks of array methods\n 'array-element-newline': 'off', // enforce line breaks after each array element\n 'arrow-body-style': ['warn', 'as-needed'], // require braces around arrow function bodies\n 'arrow-parens': 'off', // require parentheses around arrow function arguments\n 'arrow-spacing': 'off', // enforce consistent spacing before and after the arrow in arrow functions\n 'block-scoped-var': 'error', // enforce the use of variables within the scope they are defined\n 'block-spacing': 'off', // disallow or enforce spaces inside of blocks after opening block and before closing block\n 'brace-style': 'off', // enforce consistent brace style for blocks\n camelcase: ['warn', {properties: 'always'}], // enforce camelcase naming convention\n 'capitalized-comments': 'off', // enforce or disallow capitalization of the first letter of a comment\n 'class-methods-use-this': 'warn', // enforce that class methods utilize this\n 'comma-dangle': 'off', // require or disallow trailing commas\n 'comma-spacing': 'off', // enforce consistent spacing before and after commas\n 'comma-style': 'off', // enforce consistent comma style\n complexity: ['warn', 20], // enforce a maximum cyclomatic complexity allowed in a program\n 'computed-property-spacing': 'off', // enforce consistent spacing inside computed property brackets\n 'consistent-return': 'error', // require return statements to either always or never specify values\n 'consistent-this': 'off', // enforce consistent naming when capturing the current execution context\n 'constructor-super': 'error', // require super() calls in constructors\n curly: ['error', 'all'], // enforce consistent brace style for all control statements\n 'default-case': 'warn', // require default cases in switch statements\n 'default-case-last': 'warn', // enforce default clauses in switch statements to be last\n 'default-param-last': 'warn', // enforce default parameters to be last\n 'dot-location': 'off', // enforce consistent newlines before and after dots\n 'dot-notation': ['error', {allowKeywords: true}], // enforce dot notation whenever possible\n 'eol-last': 'off', // require or disallow newline at the end of files\n eqeqeq: ['error', 'smart'], // require the use of === and !==\n 'for-direction': 'error', // enforce `for` loop update clause moving the counter in the right direction\n 'func-call-spacing': 'off', // require or disallow spacing between function identifiers and their invocations\n 'func-name-matching': ['error', 'always', {considerPropertyDescriptor: true}], // require function names to match the name of the variable or property to which they are assigned\n 'func-names': 'warn', // require or disallow named function expressions\n 'func-style': ['warn', 'declaration', {allowArrowFunctions: true}], // enforce the consistent use of either function declarations or expressions\n 'function-call-argument-newline': 'off', // enforce line breaks between arguments of a function call\n 'function-paren-newline': 'off', // enforce consistent line breaks inside function parentheses\n 'generator-star-spacing': 'off', // enforce consistent spacing around `*` operators in generator functions\n 'getter-return': ['error', {allowImplicit: true}], // enforce return statements in getters\n 'grouped-accessor-pairs': 'warn', // require grouped accessor pairs in object literals and classes\n 'guard-for-in': 'error', // require `for-in` loops to include an `if` statement\n 'id-denylist': [\n 'error',\n 'any',\n 'Number',\n 'number',\n 'String',\n 'string',\n 'Boolean',\n 'boolean',\n 'Undefined',\n 'undefined',\n ], // disallow specified identifiers\n 'id-length': 'off', // enforce minimum and maximum identifier lengths\n 'id-match': 'off', // require identifiers to match a specified regular expression\n 'implicit-arrow-linebreak': 'off', // enforce the location of arrow function bodies\n indent: 'off', // enforce consistent indentation\n 'init-declarations': 'off', // require or disallow initialization in variable declarations\n 'jsx-quotes': 'off', // enforce the consistent use of either double or single quotes in JSX attributes\n 'key-spacing': 'off', // enforce consistent spacing between keys and values in object literal properties\n 'keyword-spacing': 'off', // enforce consistent spacing before and after keywords\n 'line-comment-position': 'off', // enforce position of line comments\n 'linebreak-style': 'off', // enforce consistent linebreak style\n 'lines-around-comment': 'off', // require empty lines around comments\n 'lines-between-class-members': ['warn', 'always', {exceptAfterSingleLine: true}], // require or disallow an empty line between class members\n 'max-classes-per-file': ['warn', 1], // enforce a maximum number of classes per file\n 'max-depth': 'off', // enforce a maximum depth that blocks can be nested\n 'max-len': 'off', // enforce a maximum line length\n 'max-lines': 'off', // enforce a maximum number of lines per file\n 'max-lines-per-function': 'off', // enforce a maximum number of line of code in a function\n 'max-nested-callbacks': 'off', // enforce a maximum depth that callbacks can be nested\n 'max-params': ['warn', 3], // enforce a maximum number of parameters in function definitions\n 'max-statements': 'off', // enforce a maximum number of statements allowed in function blocks\n 'max-statements-per-line': 'off', // enforce a maximum number of statements allowed per line\n 'multiline-comment-style': 'off', // enforce a particular style for multiline comments\n 'multiline-ternary': 'off', // enforce newlines between operands of ternary expressions\n 'new-cap': 'warn', // require constructor names to begin with a capital letter\n 'new-parens': 'off', // enforce or disallow parentheses when invoking a constructor with no arguments\n 'newline-per-chained-call': 'off', // require a newline after each call in a method chain\n 'no-alert': 'error', // disallow the use of alert, confirm, and prompt\n 'no-array-constructor': 'warn', // disallow Array constructors\n 'no-async-promise-executor': 'error', // disallow using an async function as a Promise executor\n 'no-await-in-loop': 'warn', // disallow await inside of loops\n 'no-bitwise': 'error', // disallow bitwise operators\n 'no-caller': 'error', // disallow the use of arguments.caller or arguments.callee\n 'no-case-declarations': 'error', // disallow lexical declarations in case clauses\n 'no-class-assign': 'error', // disallow reassigning class members\n 'no-compare-neg-zero': 'error', // disallow comparing against -0\n 'no-cond-assign': ['error', 'always'], // disallow assignment operators in conditional expressions\n 'no-confusing-arrow': 'off', // disallow arrow functions where they could be confused with comparisons\n 'no-console': 'warn', // disallow the use of console\n 'no-const-assign': 'error', // disallow reassigning const variables\n 'no-constant-binary-expression': 'error', // disallows expressions where the operation doesn't affect the value\n 'no-constant-condition': 'warn', // disallow constant expressions in conditions\n 'no-constructor-return': 'warn', // disallow returning value from constructor\n 'no-continue': 'off', // disallow continue statements\n 'no-control-regex': 'error', // disallow control characters in regular expressions\n 'no-debugger': 'error', // disallow the use of debugger\n 'no-delete-var': 'error', // disallow deleting variables\n 'no-div-regex': 'warn', // disallow division operators explicitly at the beginning of regular expressions\n 'no-dupe-args': 'error', // disallow duplicate arguments in function definitions\n 'no-dupe-class-members': 'error', // disallow duplicate class members\n 'no-dupe-else-if': 'error', // disallow duplicate conditions in if-else-if chains\n 'no-dupe-keys': 'error', // disallow duplicate keys in object literals\n 'no-duplicate-case': 'error', // disallow duplicate case labels\n 'no-duplicate-imports': 'error', // disallow duplicate module imports\n 'no-else-return': 'error', // disallow `else` blocks after `return` statements in `if` statements\n 'no-empty': 'error', // disallow empty block statements\n 'no-empty-character-class': 'error', // disallow empty character classes in regular expressions\n 'no-empty-function': 'error', // disallow empty functions\n 'no-empty-pattern': 'error', // disallow empty destructuring patterns\n 'no-eq-null': 'off', // disallow null comparisons without type-checking operators\n 'no-eval': 'error', // disallow the use of eval()\n 'no-ex-assign': 'error', // disallow reassigning exceptions in catch clauses\n 'no-extend-native': 'error', // disallow extending native types\n 'no-extra-bind': 'error', // disallow unnecessary calls to .bind()\n 'no-extra-boolean-cast': 'error', // disallow unnecessary boolean casts\n 'no-extra-label': 'error', // disallow unnecessary labels\n 'no-extra-parens': 'off', // disallow unnecessary parentheses\n 'no-extra-semi': 'off', // disallow unnecessary semicolons\n 'no-fallthrough': 'error', // disallow fallthrough of case statements\n 'no-floating-decimal': 'off', // disallow leading or trailing decimal points in numeric literals\n 'no-func-assign': 'error', // disallow reassigning function declarations\n 'no-global-assign': 'error', // disallow assignments to native objects or read-only global variables\n 'no-implicit-coercion': 'off', // disallow shorthand type conversions\n 'no-implicit-globals': 'error', // disallow declarations in the global scope\n 'no-implied-eval': 'error', // disallow the use of eval()-like methods\n 'no-import-assign': 'error', // disallow assigning to imported bindings\n 'no-inline-comments': 'off', // disallow inline comments after code\n 'no-inner-declarations': 'error', // disallow variable or function declarations in nested blocks\n 'no-invalid-regexp': 'error', // disallow invalid regular expression strings in RegExp constructors\n 'no-invalid-this': 'error', // disallow this keywords outside of classes or class-like objects\n 'no-irregular-whitespace': 'error', // disallow irregular whitespace\n 'no-iterator': 'error', // disallow the use of the __iterator__ property\n 'no-label-var': 'error', // disallow labels that share a name with a variable\n 'no-labels': 'error', // disallow labeled statements\n 'no-lone-blocks': 'error', // disallow unnecessary nested blocks\n 'no-lonely-if': 'error', // disallow if statements as the only statement in else blocks\n 'no-loop-func': 'error', // disallow function declarations that contain unsafe references inside loop statements\n 'no-loss-of-precision': 'error', // disallow literal numbers that lose precision\n 'no-magic-numbers': 'off', // disallow magic numbers\n 'no-misleading-character-class': 'error', // disallow characters which are made with multiple code points in character class syntax\n 'no-mixed-operators': 'off', // disallow mixed binary operators\n 'no-mixed-spaces-and-tabs': 'off', // disallow mixed spaces and tabs for indentation\n 'no-multi-assign': 'error', // disallow use of chained assignment expressions\n 'no-multi-spaces': 'off', // disallow multiple spaces\n 'no-multi-str': 'error', // disallow multiline strings\n 'no-multiple-empty-lines': 'off', // disallow multiple empty lines\n 'no-negated-condition': 'error', // disallow negated conditions\n 'no-nested-ternary': 'error', // disallow nested ternary expressions\n 'no-new': 'error', // disallow new operators outside of assignments or comparisons\n 'no-new-func': 'error', // disallow new operators with the Function object\n 'no-new-object': 'error', // disallow Object constructors\n 'no-new-symbol': 'error', // disallow new operators with the Symbol object\n 'no-new-wrappers': 'error', // disallow new operators with the String, Number, and Boolean objects\n 'no-nonoctal-decimal-escape': 'error', // disallow `\\8` and `\\9` escape sequences in string literals\n 'no-obj-calls': 'error', // disallow calling global object properties as functions\n 'no-octal': 'error', // disallow octal literals\n 'no-octal-escape': 'error', // disallow octal escape sequences in string literals\n 'no-param-reassign': [\n 'error',\n {\n props: true,\n ignorePropertyModificationsFor: [\n 'accumulator',\n 'error',\n 'context',\n 'request',\n 'response',\n '$scope',\n 'staticContext',\n ],\n },\n ], // disallow reassigning function parameters\n 'no-plusplus': ['error', {allowForLoopAfterthoughts: true}], // disallow the unary operators `++` and `--`\n 'no-promise-executor-return': 'error', // disallow returning values from Promise executor functions\n 'no-proto': 'error', // disallow the use of the __proto__ property\n 'no-prototype-builtins': 'warn', // disallow calling some Object.prototype methods directly on objects\n 'no-redeclare': 'error', // disallow variable redeclaration\n 'no-regex-spaces': 'error', // disallow multiple spaces in regular expressions\n 'no-restricted-exports': [\n 'error',\n {\n restrictedNamedExports: [\n 'then', // this will cause tons of confusion when your module is dynamically `import()`ed\n ],\n },\n ], // disallow specified names in exports\n 'no-restricted-globals': [\n 'error',\n {\n name: 'isFinite',\n message: 'Use Number.isFinite instead',\n },\n {\n name: 'isNaN',\n message: 'Use Number.isNaN instead',\n },\n ...confusingBrowserGlobals,\n ], // disallow specified global variables\n 'no-restricted-imports': 'off', // disallow specified modules when loaded by import\n 'no-restricted-properties': [\n 'error',\n {\n object: 'arguments',\n property: 'callee',\n message: 'arguments.callee is deprecated',\n },\n {\n object: 'global',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n },\n {\n object: 'self',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n },\n {\n object: 'window',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n },\n {\n object: 'global',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n },\n {\n object: 'self',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n },\n {\n object: 'window',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n },\n {\n property: '__defineGetter__',\n message: 'Please use Object.defineProperty instead.',\n },\n {\n property: '__defineSetter__',\n message: 'Please use Object.defineProperty instead.',\n },\n {\n object: 'Math',\n property: 'pow',\n message: 'Use the exponentiation operator (**) instead.',\n },\n ], // disallow certain properties on certain objects\n 'no-restricted-syntax': 'off', // disallow specified syntax\n 'no-return-assign': 'error', // disallow assignment operators in return statements\n 'no-return-await': 'error', // disallow unnecessary return await\n 'no-script-url': 'error', // disallow javascript: urls\n 'no-self-assign': 'error', // disallow assignments where both sides are exactly the same\n 'no-self-compare': 'error', // disallow comparisons where both sides are exactly the same\n 'no-sequences': ['error', {allowInParentheses: false}], // disallow comma operators\n 'no-setter-return': 'error', // disallow returning values from setters\n 'no-shadow': ['warn', {allow: ['resolve, reject']}], // disallow variable declarations from shadowing variables declared in the outer scope\n 'no-shadow-restricted-names': 'error', // disallow identifiers from shadowing restricted names\n 'no-sparse-arrays': 'error', // disallow sparse arrays\n 'no-tabs': 'off', // disallow all tabs\n 'no-template-curly-in-string': 'error', // disallow template literal placeholder syntax in regular strings\n 'no-ternary': 'off', // disallow ternary operators\n 'no-this-before-super': 'error', // disallow this/super before calling super() in constructors\n 'no-throw-literal': 'error', // disallow throwing literals as exceptions\n 'no-trailing-spaces': 'off', // disallow trailing whitespace at the end of lines\n 'no-undef': 'error', // disallow the use of undeclared variables unless mentioned in /* global */ comments\n 'no-undef-init': 'error', // disallow initializing variables to undefined\n 'no-undefined': 'off', // disallow the use of undefined as an identifier\n 'no-underscore-dangle': 'error', // disallow dangling underscores in identifiers\n 'no-unexpected-multiline': 'warn', // disallow confusing multiline expressions\n 'no-unmodified-loop-condition': 'warn', // disallow unmodified loop conditions\n 'no-unneeded-ternary': ['error', {defaultAssignment: false}], // disallow ternary operators when simpler alternatives exist\n 'no-unreachable': 'error', // disallow unreachable code after return, throw, continue, and break statements\n 'no-unreachable-loop': 'warn', // disallow loops with a body that allows only one iteration\n 'no-unsafe-finally': 'error', // disallow control flow statements in finally blocks\n 'no-unsafe-negation': 'error', // disallow negating the left operand of relational operators\n 'no-unsafe-optional-chaining': 'error', // disallow use of optional chaining in contexts where the `undefined` value is not allowed\n 'no-unused-expressions': [\n 'error',\n {allowShortCircuit: true, allowTernary: true, enforceForJSX: true},\n ], // disallow unused expressions\n 'no-unused-labels': 'error', // disallow unused labels\n 'no-unused-private-class-members': 'error', // disallow unused private class members\n 'no-unused-vars': ['error', {vars: 'local', args: 'after-used'}], // disallow unused variables\n 'no-use-before-define': 'error', // disallow the use of variables before they are defined\n 'no-useless-backreference': 'warn', // disallow useless backreferences in regular expressions\n 'no-useless-call': 'error', // disallow unnecessary calls to .call() and .apply()\n 'no-useless-catch': 'error', // disallow unnecessary catch clauses\n 'no-useless-computed-key': 'error', // disallow unnecessary computed property keys in objects and classes\n 'no-useless-concat': 'error', // disallow unnecessary concatenation of literals or template literals\n 'no-useless-constructor': 'error', // disallow unnecessary constructors\n 'no-useless-escape': 'error', // disallow unnecessary escape characters\n 'no-useless-rename': 'error', // disallow renaming import, export, and destructured assignments to the same name\n 'no-useless-return': 'error', // disallow redundant return statements\n 'no-var': 'error', // require let or const instead of var\n 'no-void': 'off', // disallow void operators\n 'no-warning-comments': ['warn', {terms: ['todo:', 'fixme:', 'debug:'], location: 'start'}], // disallow specified warning terms in comments\n 'no-whitespace-before-property': 'off', // disallow whitespace before properties\n 'no-with': 'error', // disallow with statements\n 'nonblock-statement-body-position': 'off', // enforce the location of single-line statements\n 'object-curly-newline': 'off', // enforce consistent line breaks inside braces\n 'object-curly-spacing': 'off', // enforce consistent spacing inside braces\n 'object-property-newline': 'off', // enforce placing object properties on separate lines\n 'object-shorthand': ['error', 'always', {avoidQuotes: true}], // require or disallow method and property shorthand syntax for object literals\n 'one-var': ['error', 'never'], // enforce variables to be declared either together or separately in functions\n 'one-var-declaration-per-line': 'off', // require or disallow newlines around variable declarations\n 'operator-assignment': ['error', 'always'], // require or disallow assignment operator shorthand where possible\n 'operator-linebreak': 'off', // enforce consistent linebreak style for operators\n 'padded-blocks': 'off', // require or disallow padding within blocks\n 'padding-line-between-statements': [\n 'warn',\n {blankLine: 'always', prev: '*', next: 'return'},\n {blankLine: 'always', prev: 'import', next: '*'},\n {blankLine: 'any', prev: 'import', next: 'import'},\n ], // require or disallow padding lines between statements\n 'prefer-arrow-callback': 'error', // require using arrow functions for callbacks\n 'prefer-const': 'off', // require const declarations for variables that are never reassigned after declared\n 'prefer-destructuring': [\n 'error',\n {\n VariableDeclarator: {array: false, object: true},\n AssignmentExpression: {array: true, object: false},\n },\n {enforceForRenamedProperties: false},\n ], // require destructuring from arrays and/or objects\n 'prefer-exponentiation-operator': 'error', // disallow the use of `Math.pow` in favor of the `**` operator\n 'prefer-named-capture-group': 'off', // enforce using named capture group in regular expression\n 'prefer-numeric-literals': 'error', // disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals\n // TODO: set to error when we ensure compatibility (e.g. Node.js v16.9 is needed for Object.hasOwn())\n 'prefer-object-has-own': 'off', // disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`\n 'prefer-object-spread': 'error', // disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead.\n 'prefer-promise-reject-errors': 'error', // require using Error objects as Promise rejection reasons\n 'prefer-regex-literals': 'error', // disallow use of the RegExp constructor in favor of regular expression literals\n 'prefer-rest-params': 'error', // require rest parameters instead of arguments\n 'prefer-spread': 'error', // require spread operators instead of .apply()\n 'prefer-template': 'error', // require template literals instead of string concatenation\n 'quote-props': 'off', // require quotes around object literal property names\n quotes: ['error', 'single', {avoidEscape: true, allowTemplateLiterals: false}], // enforce the consistent use of either backticks, double, or single quotes\n radix: 'error', // enforce the consistent use of the radix argument when using parseInt()\n 'require-atomic-updates': 'warn', // disallow assignments that can lead to race conditions due to usage of await or yield\n 'require-await': 'off', // disallow async functions which have no await expression\n 'require-unicode-regexp': 'off', // enforce the use of `u` flag on RegExp\n 'require-yield': 'error', // require generator functions to contain yield\n 'rest-spread-spacing': 'off', // enforce spacing between rest and spread operators and their expressions\n semi: 'off', // require or disallow semicolons instead of ASI\n 'semi-spacing': 'off', // enforce consistent spacing before and after semicolons\n 'semi-style': 'off', // enforce location of semicolons\n 'sort-imports': [\n 'warn',\n {\n ignoreCase: true,\n memberSyntaxSortOrder: ['none', 'single', 'all', 'multiple'],\n allowSeparatedGroups: true,\n },\n ], // enforce sorted import declarations within modules\n 'sort-keys': 'off', // require object keys to be sorted\n 'sort-vars': 'off', // require variables within the same declaration block to be sorted\n 'space-before-blocks': 'off', // enforce consistent spacing before blocks\n 'space-before-function-paren': 'off', // enforce consistent spacing before function definition opening parenthesis\n 'space-in-parens': 'off', // enforce consistent spacing inside parentheses\n 'space-infix-ops': 'off', // require spacing around infix operators\n 'space-unary-ops': 'off', // enforce consistent spacing before or after unary operators\n 'spaced-comment': ['warn', 'always'], // enforce consistent spacing after the `//` or `/*` in a comment\n strict: ['error', 'never'], // require or disallow strict mode directives\n 'switch-colon-spacing': 'off', // enforce spacing around colons of switch statements\n 'symbol-description': 'error', // require symbol descriptions\n 'template-curly-spacing': 'off', // require or disallow spacing around embedded expressions of template strings\n 'template-tag-spacing': 'off', // require or disallow spacing between template tags and their literals\n 'unicode-bom': 'off', // require or disallow Unicode byte order mark (BOM)\n 'use-isnan': 'error', // require calls to isNaN() when checking for NaN\n 'valid-typeof': ['error', {requireStringLiterals: true}], // enforce comparing typeof expressions against valid strings\n 'vars-on-top': 'error', // require var declarations be placed at the top of their containing scope\n 'wrap-iife': 'off', // require parentheses around immediate function invocations\n 'wrap-regex': 'off', // require parenthesis around regex literals\n 'yield-star-spacing': 'off', // require or disallow spacing around the `*` in `yield*` expressions\n yoda: 'error', // require or disallow “Yoda” conditions\n};\n\nexport default config;\n"],"names":["config","allowImplicit","camelcase","properties","complexity","curly","allowKeywords","eqeqeq","considerPropertyDescriptor","allowArrowFunctions","indent","exceptAfterSingleLine","props","ignorePropertyModificationsFor","allowForLoopAfterthoughts","restrictedNamedExports","name","message","confusingBrowserGlobals","object","property","allowInParentheses","allow","defaultAssignment","allowShortCircuit","allowTernary","enforceForJSX","vars","args","terms","location","avoidQuotes","blankLine","prev","next","VariableDeclarator","array","AssignmentExpression","enforceForRenamedProperties","quotes","avoidEscape","allowTemplateLiterals","radix","semi","ignoreCase","memberSyntaxSortOrder","allowSeparatedGroups","strict","requireStringLiterals","yoda"],"mappings":"AAAA;+BAmYA,SAAsB;;aAAtB,QAAsB;;yCAnYmB,2BAA2B;AAGpE,MAAMA,MAAM,GAAkC;IAC5C,eAAe;IACf,gBAAgB,EAAE,KAAK;IACvB,uBAAuB,EAAE,KAAK;IAC9B,uBAAuB,EAAE,KAAK;IAC9B,uBAAuB,EAAE;QAAC,OAAO;QAAE;YAACC,aAAa,EAAE,IAAI;SAAC;KAAC;IACzD,uBAAuB,EAAE,KAAK;IAC9B,kBAAkB,EAAE;QAAC,MAAM;QAAE,WAAW;KAAC;IACzC,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,KAAK;IACtB,kBAAkB,EAAE,OAAO;IAC3B,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,KAAK;IACpBC,SAAS,EAAE;QAAC,MAAM;QAAE;YAACC,UAAU,EAAE,QAAQ;SAAC;KAAC;IAC3C,sBAAsB,EAAE,KAAK;IAC7B,wBAAwB,EAAE,MAAM;IAChC,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;QAAC,MAAM;AAAE,UAAE;KAAC;IACxB,2BAA2B,EAAE,KAAK;IAClC,mBAAmB,EAAE,OAAO;IAC5B,iBAAiB,EAAE,KAAK;IACxB,mBAAmB,EAAE,OAAO;IAC5BC,KAAK,EAAE;QAAC,OAAO;QAAE,KAAK;KAAC;IACvB,cAAc,EAAE,MAAM;IACtB,mBAAmB,EAAE,MAAM;IAC3B,oBAAoB,EAAE,MAAM;IAC5B,cAAc,EAAE,KA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YAChBC,qBAAqB,EAAE;gBAAC,MAAM;gBAAE,QAAQ;gBAAE,KAAK;gBAAE,UAAU;aAAC;YAC5DC,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,KAAK;IAClB,qBAAqB,EAAE,KAAK;IAC5B,6BAA6B,EAAE,KAAK;IACpC,iBAAiB,EAAE,KAAK;IACxB,iBAAiB,EAAE,KAAK;IACxB,iBAAiB,EAAE,KAAK;IACxB,gBAAgB,EAAE;QAAC,MAAM;QAAE,QAAQ;KAAC;IACpCC,MAAM,EAAE;QAAC,OAAO;QAAE,OAAO;KAAC;IAC1B,sBAAsB,EAAE,KAAK;IAC7B,oBAAoB,EAAE,OAAO;IAC7B,wBAAwB,EAAE,KAAK;IAC/B,sBAAsB,EAAE,KAAK;IAC7B,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,OAAO;IACpB,cAAc,EAAE;QAAC,OAAO;QAAE;YAACC,qBAAqB,EAAE,IAAI;SAAC;KAAC;IACxD,aAAa,EAAE,OAAO;IACtB,WAAW,EAAE,KAAK;IAClB,YAAY,EAAE,KAAK;IACnB,oBAAoB,EAAE,KAAK;IAC3BC,IAAI,EAAE,OAAO;CACd,AAAC;MAEF,QAAsB,GAAPjD,MAAM"}
|
|
1
|
+
{"version":3,"sources":["../../src/rules/eslint.ts"],"sourcesContent":["import * as confusingBrowserGlobals from 'confusing-browser-globals';\nimport type eslint from 'eslint';\n\nconst config: eslint.Linter.Config['rules'] = {\n // ESLint rules\n 'accessor-pairs': 'off', // enforce getter and setter pairs in objects and classes\n 'array-bracket-newline': 'off', // enforce linebreaks after opening and before closing array brackets\n 'array-bracket-spacing': 'off', // enforce consistent spacing inside array brackets\n 'array-callback-return': ['error', {allowImplicit: true}], // enforce return statements in callbacks of array methods\n 'array-element-newline': 'off', // enforce line breaks after each array element\n 'arrow-body-style': ['warn', 'as-needed'], // require braces around arrow function bodies\n 'arrow-parens': 'off', // require parentheses around arrow function arguments\n 'arrow-spacing': 'off', // enforce consistent spacing before and after the arrow in arrow functions\n 'block-scoped-var': 'error', // enforce the use of variables within the scope they are defined\n 'block-spacing': 'off', // disallow or enforce spaces inside of blocks after opening block and before closing block\n 'brace-style': 'off', // enforce consistent brace style for blocks\n camelcase: ['warn', {properties: 'always'}], // enforce camelcase naming convention\n 'capitalized-comments': 'off', // enforce or disallow capitalization of the first letter of a comment\n 'class-methods-use-this': 'warn', // enforce that class methods utilize this\n 'comma-dangle': 'off', // require or disallow trailing commas\n 'comma-spacing': 'off', // enforce consistent spacing before and after commas\n 'comma-style': 'off', // enforce consistent comma style\n complexity: ['warn', 20], // enforce a maximum cyclomatic complexity allowed in a program\n 'computed-property-spacing': 'off', // enforce consistent spacing inside computed property brackets\n 'consistent-return': 'error', // require return statements to either always or never specify values\n 'consistent-this': 'off', // enforce consistent naming when capturing the current execution context\n 'constructor-super': 'error', // require super() calls in constructors\n curly: ['error', 'all'], // enforce consistent brace style for all control statements\n 'default-case': 'warn', // require default cases in switch statements\n 'default-case-last': 'warn', // enforce default clauses in switch statements to be last\n 'default-param-last': 'warn', // enforce default parameters to be last\n 'dot-location': 'off', // enforce consistent newlines before and after dots\n 'dot-notation': ['error', {allowKeywords: true}], // enforce dot notation whenever possible\n 'eol-last': 'off', // require or disallow newline at the end of files\n eqeqeq: ['error', 'smart'], // require the use of === and !==\n 'for-direction': 'error', // enforce `for` loop update clause moving the counter in the right direction\n 'func-call-spacing': 'off', // require or disallow spacing between function identifiers and their invocations\n 'func-name-matching': ['error', 'always', {considerPropertyDescriptor: true}], // require function names to match the name of the variable or property to which they are assigned\n 'func-names': 'warn', // require or disallow named function expressions\n 'func-style': ['warn', 'declaration', {allowArrowFunctions: true}], // enforce the consistent use of either function declarations or expressions\n 'function-call-argument-newline': 'off', // enforce line breaks between arguments of a function call\n 'function-paren-newline': 'off', // enforce consistent line breaks inside function parentheses\n 'generator-star-spacing': 'off', // enforce consistent spacing around `*` operators in generator functions\n 'getter-return': ['error', {allowImplicit: true}], // enforce return statements in getters\n 'grouped-accessor-pairs': 'warn', // require grouped accessor pairs in object literals and classes\n 'guard-for-in': 'error', // require `for-in` loops to include an `if` statement\n 'id-denylist': [\n 'error',\n 'any',\n 'Number',\n 'number',\n 'String',\n 'string',\n 'Boolean',\n 'boolean',\n 'Undefined',\n 'undefined',\n ], // disallow specified identifiers\n 'id-length': 'off', // enforce minimum and maximum identifier lengths\n 'id-match': 'off', // require identifiers to match a specified regular expression\n 'implicit-arrow-linebreak': 'off', // enforce the location of arrow function bodies\n indent: 'off', // enforce consistent indentation\n 'init-declarations': 'off', // require or disallow initialization in variable declarations\n 'jsx-quotes': 'off', // enforce the consistent use of either double or single quotes in JSX attributes\n 'key-spacing': 'off', // enforce consistent spacing between keys and values in object literal properties\n 'keyword-spacing': 'off', // enforce consistent spacing before and after keywords\n 'line-comment-position': 'off', // enforce position of line comments\n 'linebreak-style': 'off', // enforce consistent linebreak style\n 'lines-around-comment': 'off', // require empty lines around comments\n 'lines-between-class-members': ['warn', 'always', {exceptAfterSingleLine: true}], // require or disallow an empty line between class members\n 'logical-assignment-operators': ['warn', 'always', {enforceForIfStatements: true}], // require or disallow logical assignment logical operator shorthand\n 'max-classes-per-file': ['warn', 1], // enforce a maximum number of classes per file\n 'max-depth': 'off', // enforce a maximum depth that blocks can be nested\n 'max-len': 'off', // enforce a maximum line length\n 'max-lines': 'off', // enforce a maximum number of lines per file\n 'max-lines-per-function': 'off', // enforce a maximum number of line of code in a function\n 'max-nested-callbacks': 'off', // enforce a maximum depth that callbacks can be nested\n 'max-params': ['warn', 3], // enforce a maximum number of parameters in function definitions\n 'max-statements': 'off', // enforce a maximum number of statements allowed in function blocks\n 'max-statements-per-line': 'off', // enforce a maximum number of statements allowed per line\n 'multiline-comment-style': 'off', // enforce a particular style for multiline comments\n 'multiline-ternary': 'off', // enforce newlines between operands of ternary expressions\n 'new-cap': 'warn', // require constructor names to begin with a capital letter\n 'new-parens': 'off', // enforce or disallow parentheses when invoking a constructor with no arguments\n 'newline-per-chained-call': 'off', // require a newline after each call in a method chain\n 'no-alert': 'error', // disallow the use of alert, confirm, and prompt\n 'no-array-constructor': 'warn', // disallow Array constructors\n 'no-async-promise-executor': 'error', // disallow using an async function as a Promise executor\n 'no-await-in-loop': 'warn', // disallow await inside of loops\n 'no-bitwise': 'error', // disallow bitwise operators\n 'no-caller': 'error', // disallow the use of arguments.caller or arguments.callee\n 'no-case-declarations': 'error', // disallow lexical declarations in case clauses\n 'no-class-assign': 'error', // disallow reassigning class members\n 'no-compare-neg-zero': 'error', // disallow comparing against -0\n 'no-cond-assign': ['error', 'always'], // disallow assignment operators in conditional expressions\n 'no-confusing-arrow': 'off', // disallow arrow functions where they could be confused with comparisons\n 'no-console': 'warn', // disallow the use of console\n 'no-const-assign': 'error', // disallow reassigning const variables\n 'no-constant-binary-expression': 'error', // disallows expressions where the operation doesn't affect the value\n 'no-constant-condition': 'warn', // disallow constant expressions in conditions\n 'no-constructor-return': 'warn', // disallow returning value from constructor\n 'no-continue': 'off', // disallow continue statements\n 'no-control-regex': 'error', // disallow control characters in regular expressions\n 'no-debugger': 'error', // disallow the use of debugger\n 'no-delete-var': 'error', // disallow deleting variables\n 'no-div-regex': 'warn', // disallow division operators explicitly at the beginning of regular expressions\n 'no-dupe-args': 'error', // disallow duplicate arguments in function definitions\n 'no-dupe-class-members': 'error', // disallow duplicate class members\n 'no-dupe-else-if': 'error', // disallow duplicate conditions in if-else-if chains\n 'no-dupe-keys': 'error', // disallow duplicate keys in object literals\n 'no-duplicate-case': 'error', // disallow duplicate case labels\n 'no-duplicate-imports': 'error', // disallow duplicate module imports\n 'no-else-return': 'error', // disallow `else` blocks after `return` statements in `if` statements\n 'no-empty': 'error', // disallow empty block statements\n 'no-empty-character-class': 'error', // disallow empty character classes in regular expressions\n 'no-empty-function': 'error', // disallow empty functions\n 'no-empty-pattern': 'error', // disallow empty destructuring patterns\n 'no-eq-null': 'off', // disallow null comparisons without type-checking operators\n 'no-eval': 'error', // disallow the use of eval()\n 'no-ex-assign': 'error', // disallow reassigning exceptions in catch clauses\n 'no-extend-native': 'error', // disallow extending native types\n 'no-extra-bind': 'error', // disallow unnecessary calls to .bind()\n 'no-extra-boolean-cast': 'error', // disallow unnecessary boolean casts\n 'no-extra-label': 'error', // disallow unnecessary labels\n 'no-extra-parens': 'off', // disallow unnecessary parentheses\n 'no-extra-semi': 'off', // disallow unnecessary semicolons\n 'no-empty-static-block': 'error', // disallow empty static blocks\n 'no-fallthrough': 'error', // disallow fallthrough of case statements\n 'no-floating-decimal': 'off', // disallow leading or trailing decimal points in numeric literals\n 'no-func-assign': 'error', // disallow reassigning function declarations\n 'no-global-assign': 'error', // disallow assignments to native objects or read-only global variables\n 'no-implicit-coercion': 'off', // disallow shorthand type conversions\n 'no-implicit-globals': 'error', // disallow declarations in the global scope\n 'no-implied-eval': 'error', // disallow the use of eval()-like methods\n 'no-import-assign': 'error', // disallow assigning to imported bindings\n 'no-inline-comments': 'off', // disallow inline comments after code\n 'no-inner-declarations': 'error', // disallow variable or function declarations in nested blocks\n 'no-invalid-regexp': 'error', // disallow invalid regular expression strings in RegExp constructors\n 'no-invalid-this': 'error', // disallow this keywords outside of classes or class-like objects\n 'no-irregular-whitespace': 'error', // disallow irregular whitespace\n 'no-iterator': 'error', // disallow the use of the __iterator__ property\n 'no-label-var': 'error', // disallow labels that share a name with a variable\n 'no-labels': 'error', // disallow labeled statements\n 'no-lone-blocks': 'error', // disallow unnecessary nested blocks\n 'no-lonely-if': 'error', // disallow if statements as the only statement in else blocks\n 'no-loop-func': 'error', // disallow function declarations that contain unsafe references inside loop statements\n 'no-loss-of-precision': 'error', // disallow literal numbers that lose precision\n 'no-magic-numbers': 'off', // disallow magic numbers\n 'no-misleading-character-class': 'error', // disallow characters which are made with multiple code points in character class syntax\n 'no-mixed-operators': 'off', // disallow mixed binary operators\n 'no-mixed-spaces-and-tabs': 'off', // disallow mixed spaces and tabs for indentation\n 'no-multi-assign': 'error', // disallow use of chained assignment expressions\n 'no-multi-spaces': 'off', // disallow multiple spaces\n 'no-multi-str': 'error', // disallow multiline strings\n 'no-multiple-empty-lines': 'off', // disallow multiple empty lines\n 'no-negated-condition': 'error', // disallow negated conditions\n 'no-nested-ternary': 'error', // disallow nested ternary expressions\n 'no-new': 'error', // disallow new operators outside of assignments or comparisons\n 'no-new-func': 'error', // disallow new operators with the Function object\n 'no-new-native-nonconstructor': 'error', // disallow new operators with global non-constructor functions\n 'no-new-object': 'error', // disallow Object constructors\n 'no-new-symbol': 'error', // disallow new operators with the Symbol object\n 'no-new-wrappers': 'error', // disallow new operators with the String, Number, and Boolean objects\n 'no-nonoctal-decimal-escape': 'error', // disallow `\\8` and `\\9` escape sequences in string literals\n 'no-obj-calls': 'error', // disallow calling global object properties as functions\n 'no-octal': 'error', // disallow octal literals\n 'no-octal-escape': 'error', // disallow octal escape sequences in string literals\n 'no-param-reassign': [\n 'error',\n {\n props: true,\n ignorePropertyModificationsFor: [\n 'accumulator',\n 'error',\n 'context',\n 'request',\n 'response',\n '$scope',\n 'staticContext',\n ],\n },\n ], // disallow reassigning function parameters\n 'no-plusplus': ['error', {allowForLoopAfterthoughts: true}], // disallow the unary operators `++` and `--`\n 'no-promise-executor-return': 'error', // disallow returning values from Promise executor functions\n 'no-proto': 'error', // disallow the use of the __proto__ property\n 'no-prototype-builtins': 'warn', // disallow calling some Object.prototype methods directly on objects\n 'no-redeclare': 'error', // disallow variable redeclaration\n 'no-regex-spaces': 'error', // disallow multiple spaces in regular expressions\n 'no-restricted-exports': [\n 'error',\n {\n restrictedNamedExports: [\n 'then', // this will cause tons of confusion when your module is dynamically `import()`ed\n ],\n },\n ], // disallow specified names in exports\n 'no-restricted-globals': [\n 'error',\n {\n name: 'isFinite',\n message: 'Use Number.isFinite instead',\n },\n {\n name: 'isNaN',\n message: 'Use Number.isNaN instead',\n },\n ...confusingBrowserGlobals,\n ], // disallow specified global variables\n 'no-restricted-imports': 'off', // disallow specified modules when loaded by import\n 'no-restricted-properties': [\n 'error',\n {\n object: 'arguments',\n property: 'callee',\n message: 'arguments.callee is deprecated',\n },\n {\n object: 'global',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n },\n {\n object: 'self',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n },\n {\n object: 'window',\n property: 'isFinite',\n message: 'Please use Number.isFinite instead',\n },\n {\n object: 'global',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n },\n {\n object: 'self',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n },\n {\n object: 'window',\n property: 'isNaN',\n message: 'Please use Number.isNaN instead',\n },\n {\n property: '__defineGetter__',\n message: 'Please use Object.defineProperty instead.',\n },\n {\n property: '__defineSetter__',\n message: 'Please use Object.defineProperty instead.',\n },\n {\n object: 'Math',\n property: 'pow',\n message: 'Use the exponentiation operator (**) instead.',\n },\n ], // disallow certain properties on certain objects\n 'no-restricted-syntax': 'off', // disallow specified syntax\n 'no-return-assign': 'error', // disallow assignment operators in return statements\n 'no-return-await': 'error', // disallow unnecessary return await\n 'no-script-url': 'error', // disallow javascript: urls\n 'no-self-assign': 'error', // disallow assignments where both sides are exactly the same\n 'no-self-compare': 'error', // disallow comparisons where both sides are exactly the same\n 'no-sequences': ['error', {allowInParentheses: false}], // disallow comma operators\n 'no-setter-return': 'error', // disallow returning values from setters\n 'no-shadow': ['warn', {allow: ['resolve, reject']}], // disallow variable declarations from shadowing variables declared in the outer scope\n 'no-shadow-restricted-names': 'error', // disallow identifiers from shadowing restricted names\n 'no-sparse-arrays': 'error', // disallow sparse arrays\n 'no-tabs': 'off', // disallow all tabs\n 'no-template-curly-in-string': 'error', // disallow template literal placeholder syntax in regular strings\n 'no-ternary': 'off', // disallow ternary operators\n 'no-this-before-super': 'error', // disallow this/super before calling super() in constructors\n 'no-throw-literal': 'error', // disallow throwing literals as exceptions\n 'no-trailing-spaces': 'off', // disallow trailing whitespace at the end of lines\n 'no-undef': 'error', // disallow the use of undeclared variables unless mentioned in /* global */ comments\n 'no-undef-init': 'error', // disallow initializing variables to undefined\n 'no-undefined': 'off', // disallow the use of undefined as an identifier\n 'no-underscore-dangle': 'error', // disallow dangling underscores in identifiers\n 'no-unexpected-multiline': 'warn', // disallow confusing multiline expressions\n 'no-unmodified-loop-condition': 'warn', // disallow unmodified loop conditions\n 'no-unneeded-ternary': ['error', {defaultAssignment: false}], // disallow ternary operators when simpler alternatives exist\n 'no-unreachable': 'error', // disallow unreachable code after return, throw, continue, and break statements\n 'no-unreachable-loop': 'warn', // disallow loops with a body that allows only one iteration\n 'no-unsafe-finally': 'error', // disallow control flow statements in finally blocks\n 'no-unsafe-negation': 'error', // disallow negating the left operand of relational operators\n 'no-unsafe-optional-chaining': 'error', // disallow use of optional chaining in contexts where the `undefined` value is not allowed\n 'no-unused-expressions': [\n 'error',\n {allowShortCircuit: true, allowTernary: true, enforceForJSX: true},\n ], // disallow unused expressions\n 'no-unused-labels': 'error', // disallow unused labels\n 'no-unused-private-class-members': 'error', // disallow unused private class members\n 'no-unused-vars': ['error', {vars: 'local', args: 'after-used'}], // disallow unused variables\n 'no-use-before-define': 'error', // disallow the use of variables before they are defined\n 'no-useless-backreference': 'warn', // disallow useless backreferences in regular expressions\n 'no-useless-call': 'error', // disallow unnecessary calls to .call() and .apply()\n 'no-useless-catch': 'error', // disallow unnecessary catch clauses\n 'no-useless-computed-key': 'error', // disallow unnecessary computed property keys in objects and classes\n 'no-useless-concat': 'error', // disallow unnecessary concatenation of literals or template literals\n 'no-useless-constructor': 'error', // disallow unnecessary constructors\n 'no-useless-escape': 'error', // disallow unnecessary escape characters\n 'no-useless-rename': 'error', // disallow renaming import, export, and destructured assignments to the same name\n 'no-useless-return': 'error', // disallow redundant return statements\n 'no-var': 'error', // require let or const instead of var\n 'no-void': 'off', // disallow void operators\n 'no-warning-comments': ['warn', {terms: ['todo:', 'fixme:', 'debug:'], location: 'start'}], // disallow specified warning terms in comments\n 'no-whitespace-before-property': 'off', // disallow whitespace before properties\n 'no-with': 'error', // disallow with statements\n 'nonblock-statement-body-position': 'off', // enforce the location of single-line statements\n 'object-curly-newline': 'off', // enforce consistent line breaks inside braces\n 'object-curly-spacing': 'off', // enforce consistent spacing inside braces\n 'object-property-newline': 'off', // enforce placing object properties on separate lines\n 'object-shorthand': ['error', 'always', {avoidQuotes: true}], // require or disallow method and property shorthand syntax for object literals\n 'one-var': ['error', 'never'], // enforce variables to be declared either together or separately in functions\n 'one-var-declaration-per-line': 'off', // require or disallow newlines around variable declarations\n 'operator-assignment': ['error', 'always'], // require or disallow assignment operator shorthand where possible\n 'operator-linebreak': 'off', // enforce consistent linebreak style for operators\n 'padded-blocks': 'off', // require or disallow padding within blocks\n 'padding-line-between-statements': [\n 'warn',\n {blankLine: 'always', prev: '*', next: 'return'},\n {blankLine: 'always', prev: 'import', next: '*'},\n {blankLine: 'any', prev: 'import', next: 'import'},\n ], // require or disallow padding lines between statements\n 'prefer-arrow-callback': 'error', // require using arrow functions for callbacks\n 'prefer-const': 'off', // require const declarations for variables that are never reassigned after declared\n 'prefer-destructuring': [\n 'error',\n {\n VariableDeclarator: {array: false, object: true},\n AssignmentExpression: {array: true, object: false},\n },\n {enforceForRenamedProperties: false},\n ], // require destructuring from arrays and/or objects\n 'prefer-exponentiation-operator': 'error', // disallow the use of `Math.pow` in favor of the `**` operator\n 'prefer-named-capture-group': 'off', // enforce using named capture group in regular expression\n 'prefer-numeric-literals': 'error', // disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals\n // TODO: set to error when we ensure compatibility (e.g. Node.js v16.9 is needed for Object.hasOwn())\n 'prefer-object-has-own': 'off', // disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`\n 'prefer-object-spread': 'error', // disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead.\n 'prefer-promise-reject-errors': 'error', // require using Error objects as Promise rejection reasons\n 'prefer-regex-literals': 'error', // disallow use of the RegExp constructor in favor of regular expression literals\n 'prefer-rest-params': 'error', // require rest parameters instead of arguments\n 'prefer-spread': 'error', // require spread operators instead of .apply()\n 'prefer-template': 'error', // require template literals instead of string concatenation\n 'quote-props': 'off', // require quotes around object literal property names\n quotes: ['error', 'single', {avoidEscape: true, allowTemplateLiterals: false}], // enforce the consistent use of either backticks, double, or single quotes\n radix: 'error', // enforce the consistent use of the radix argument when using parseInt()\n 'require-atomic-updates': 'warn', // disallow assignments that can lead to race conditions due to usage of await or yield\n 'require-await': 'off', // disallow async functions which have no await expression\n 'require-unicode-regexp': 'off', // enforce the use of `u` flag on RegExp\n 'require-yield': 'error', // require generator functions to contain yield\n 'rest-spread-spacing': 'off', // enforce spacing between rest and spread operators and their expressions\n semi: 'off', // require or disallow semicolons instead of ASI\n 'semi-spacing': 'off', // enforce consistent spacing before and after semicolons\n 'semi-style': 'off', // enforce location of semicolons\n 'sort-imports': [\n 'warn',\n {\n ignoreCase: true,\n memberSyntaxSortOrder: ['none', 'single', 'all', 'multiple'],\n allowSeparatedGroups: true,\n },\n ], // enforce sorted import declarations within modules\n 'sort-keys': 'off', // require object keys to be sorted\n 'sort-vars': 'off', // require variables within the same declaration block to be sorted\n 'space-before-blocks': 'off', // enforce consistent spacing before blocks\n 'space-before-function-paren': 'off', // enforce consistent spacing before function definition opening parenthesis\n 'space-in-parens': 'off', // enforce consistent spacing inside parentheses\n 'space-infix-ops': 'off', // require spacing around infix operators\n 'space-unary-ops': 'off', // enforce consistent spacing before or after unary operators\n 'spaced-comment': ['warn', 'always'], // enforce consistent spacing after the `//` or `/*` in a comment\n strict: ['error', 'never'], // require or disallow strict mode directives\n 'switch-colon-spacing': 'off', // enforce spacing around colons of switch statements\n 'symbol-description': 'error', // require symbol descriptions\n 'template-curly-spacing': 'off', // require or disallow spacing around embedded expressions of template strings\n 'template-tag-spacing': 'off', // require or disallow spacing between template tags and their literals\n 'unicode-bom': 'off', // require or disallow Unicode byte order mark (BOM)\n 'use-isnan': 'error', // require calls to isNaN() when checking for NaN\n 'valid-typeof': ['error', {requireStringLiterals: true}], // enforce comparing typeof expressions against valid strings\n 'vars-on-top': 'error', // require var declarations be placed at the top of their containing scope\n 'wrap-iife': 'off', // require parentheses around immediate function invocations\n 'wrap-regex': 'off', // require parenthesis around regex literals\n 'yield-star-spacing': 'off', // require or disallow spacing around the `*` in `yield*` expressions\n yoda: 'error', // require or disallow “Yoda” conditions\n};\n\nexport default config;\n"],"names":["config","allowImplicit","camelcase","properties","complexity","curly","allowKeywords","eqeqeq","considerPropertyDescriptor","allowArrowFunctions","indent","exceptAfterSingleLine","enforceForIfStatements","props","ignorePropertyModificationsFor","allowForLoopAfterthoughts","restrictedNamedExports","name","message","confusingBrowserGlobals","object","property","allowInParentheses","allow","defaultAssignment","allowShortCircuit","allowTernary","enforceForJSX","vars","args","terms","location","avoidQuotes","blankLine","prev","next","VariableDeclarator","array","AssignmentExpression","enforceForRenamedProperties","quotes","avoidEscape","allowTemplateLiterals","radix","semi","ignoreCase","memberSyntaxSortOrder","allowSeparatedGroups","strict","requireStringLiterals","yoda"],"mappings":"AAAA;+BAsYA;;aAAA;;yCAtYyC;AAGzC,MAAMA,SAAwC;IAC5C,eAAe;IACf,kBAAkB;IAClB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;QAAC;QAAS;YAACC,eAAe,IAAI;QAAA;KAAE;IACzD,yBAAyB;IACzB,oBAAoB;QAAC;QAAQ;KAAY;IACzC,gBAAgB;IAChB,iBAAiB;IACjB,oBAAoB;IACpB,iBAAiB;IACjB,eAAe;IACfC,WAAW;QAAC;QAAQ;YAACC,YAAY;QAAQ;KAAE;IAC3C,wBAAwB;IACxB,0BAA0B;IAC1B,gBAAgB;IAChB,iBAAiB;IACjB,eAAe;IACfC,YAAY;QAAC;QAAQ;KAAG;IACxB,6BAA6B;IAC7B,qBAAqB;IACrB,mBAAmB;IACnB,qBAAqB;IACrBC,OAAO;QAAC;QAAS;KAAM;IACvB,gBAAgB;IAChB,qBAAqB;IACrB,sBAAsB;IACtB,gBAAgB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