@jakubmazanec/eslint-config 2.0.0 → 2.0.1-11dd4a3
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/README.md +1 -1
- package/dist/constants.js +24 -8
- package/dist/constants.js.map +1 -1
- package/dist/main.js.map +1 -1
- package/dist/presets/base.js +10 -10
- package/dist/presets/base.js.map +1 -1
- package/dist/presets/nextjs.js.map +1 -1
- package/dist/presets/nodejs.js.map +1 -1
- package/dist/presets/prettier.js.map +1 -1
- package/dist/resolvers/graphql.js +6 -2
- package/dist/resolvers/graphql.js.map +1 -1
- package/dist/rules/a11y.js +3 -1
- package/dist/rules/a11y.js.map +1 -1
- package/dist/rules/eslint-comments.js +3 -1
- package/dist/rules/eslint-comments.js.map +1 -1
- package/dist/rules/eslint.js +5 -3
- package/dist/rules/eslint.js.map +1 -1
- package/dist/rules/import.js +3 -1
- package/dist/rules/import.js.map +1 -1
- package/dist/rules/jest-formatting.js +3 -1
- package/dist/rules/jest-formatting.js.map +1 -1
- package/dist/rules/jest.js +3 -1
- package/dist/rules/jest.js.map +1 -1
- package/dist/rules/nextjs.js +3 -1
- package/dist/rules/nextjs.js.map +1 -1
- package/dist/rules/node.js +3 -1
- package/dist/rules/node.js.map +1 -1
- package/dist/rules/prettier.js +3 -1
- package/dist/rules/prettier.js.map +1 -1
- package/dist/rules/promise.js +3 -1
- package/dist/rules/promise.js.map +1 -1
- package/dist/rules/react-hooks.js +3 -1
- package/dist/rules/react-hooks.js.map +1 -1
- package/dist/rules/react.js +3 -1
- package/dist/rules/react.js.map +1 -1
- package/dist/rules/testing-library.js +3 -1
- package/dist/rules/testing-library.js.map +1 -1
- package/dist/rules/typescript.js +3 -1
- package/dist/rules/typescript.js.map +1 -1
- package/dist/rules/unicorn.js +3 -1
- package/dist/rules/unicorn.js.map +1 -1
- package/package.json +15 -15
package/README.md
CHANGED
package/dist/constants.js
CHANGED
|
@@ -6,14 +6,30 @@ function _export(target, all) {
|
|
|
6
6
|
});
|
|
7
7
|
}
|
|
8
8
|
_export(exports, {
|
|
9
|
-
JS_AND_TS_EXTENSIONS: ()
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
JS_AND_TS_EXTENSIONS: function() {
|
|
10
|
+
return JS_AND_TS_EXTENSIONS;
|
|
11
|
+
},
|
|
12
|
+
JS_EXTENSIONS_GLOB_PART: function() {
|
|
13
|
+
return JS_EXTENSIONS_GLOB_PART;
|
|
14
|
+
},
|
|
15
|
+
TS_EXTENSIONS_GLOB_PART: function() {
|
|
16
|
+
return TS_EXTENSIONS_GLOB_PART;
|
|
17
|
+
},
|
|
18
|
+
JS_AND_TS_EXTENSIONS_GLOB_PART: function() {
|
|
19
|
+
return JS_AND_TS_EXTENSIONS_GLOB_PART;
|
|
20
|
+
},
|
|
21
|
+
JS_AND_TS_EXTENSIONS_REGEXP: function() {
|
|
22
|
+
return JS_AND_TS_EXTENSIONS_REGEXP;
|
|
23
|
+
},
|
|
24
|
+
ASSET_EXTENSIONS_REGEXP: function() {
|
|
25
|
+
return ASSET_EXTENSIONS_REGEXP;
|
|
26
|
+
},
|
|
27
|
+
CSS_EXTENSIONS_REGEXP: function() {
|
|
28
|
+
return CSS_EXTENSIONS_REGEXP;
|
|
29
|
+
},
|
|
30
|
+
GRAPHQL_EXTENSIONS_REGEXP: function() {
|
|
31
|
+
return GRAPHQL_EXTENSIONS_REGEXP;
|
|
32
|
+
}
|
|
17
33
|
});
|
|
18
34
|
const JS_AND_TS_EXTENSIONS = [
|
|
19
35
|
'.ts',
|
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":"
|
|
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":";;;;;;;;IAAaA,oBAAoB;eAApBA;;IAYAC,uBAAuB;eAAvBA;;IACAC,uBAAuB;eAAvBA;;IACAC,8BAA8B;eAA9BA;;IAEAC,2BAA2B;eAA3BA;;IACAC,uBAAuB;eAAvBA;;IACAC,qBAAqB;eAArBA;;IACAC,yBAAyB;eAAzBA;;;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.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":"
|
|
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":";AAEA,IAAIA,SAA+B;IACjCC,SAAS;QAACC,QAAQC,QAAQ;KAAqB;IAE/CC,+BAA+B;IAE/B,kIAAkI;IAClIC,OAAO,CAAC;AACV;iBAESL"}
|
package/dist/presets/base.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _constants = require("../constants");
|
|
3
|
-
const
|
|
3
|
+
const _a11y = require("../rules/a11y");
|
|
4
4
|
const _eslint = require("../rules/eslint");
|
|
5
|
-
const
|
|
5
|
+
const _eslintcomments = require("../rules/eslint-comments");
|
|
6
6
|
const _import = require("../rules/import");
|
|
7
7
|
const _jest = require("../rules/jest");
|
|
8
|
-
const
|
|
8
|
+
const _jestformatting = require("../rules/jest-formatting");
|
|
9
9
|
const _promise = require("../rules/promise");
|
|
10
10
|
const _react = require("../rules/react");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const _reacthooks = require("../rules/react-hooks");
|
|
12
|
+
const _testinglibrary = require("../rules/testing-library");
|
|
13
13
|
const _typescript = require("../rules/typescript");
|
|
14
14
|
const _unicorn = require("../rules/unicorn");
|
|
15
15
|
const config = {
|
|
@@ -75,12 +75,12 @@ const config = {
|
|
|
75
75
|
},
|
|
76
76
|
rules: {
|
|
77
77
|
..._eslint.default,
|
|
78
|
-
...
|
|
78
|
+
..._eslintcomments.default,
|
|
79
79
|
..._promise.default,
|
|
80
80
|
..._import.default,
|
|
81
81
|
..._react.default,
|
|
82
|
-
...
|
|
83
|
-
...
|
|
82
|
+
..._reacthooks.default,
|
|
83
|
+
..._a11y.default,
|
|
84
84
|
..._unicorn.default
|
|
85
85
|
},
|
|
86
86
|
overrides: [
|
|
@@ -107,8 +107,8 @@ const config = {
|
|
|
107
107
|
},
|
|
108
108
|
rules: {
|
|
109
109
|
..._jest.default,
|
|
110
|
-
...
|
|
111
|
-
...
|
|
110
|
+
..._jestformatting.default,
|
|
111
|
+
..._testinglibrary.default,
|
|
112
112
|
// override ESLint rules
|
|
113
113
|
'max-classes-per-file': 'off',
|
|
114
114
|
// override eslint-plugin-node rules
|
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":"
|
|
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":";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;QACP;IACF;IACAC,SAAS;QAAC;QAAU;QAAS;QAAe;QAAY;QAAmB;QAAW;KAAU;IAChGC,KAAK;QACHC,SAAS;QACTC,QAAQ;QACRC,QAAQ;QACRC,eAAe;IACjB;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,mCAAwBC;YACxBC,iCAAsBD;YACtBE,qCAA0BF;SAC3B;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,GAA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A2C;YAC7C;QACF;KACD;AACH;iBAESnC"}
|
|
@@ -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":"
|
|
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":";wBAEwB;AAExB,MAAMA,SAA+B;IACnCC,SAAS;QAAC;KAAa;IACvBC,OAAO;QACL,GAAGC,eAAW;IAChB;AACF;iBAESH"}
|
|
@@ -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":"
|
|
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":";sBAEsB;AAEtB,MAAMA,SAA+B;IACnCC,SAAS;QAAC;KAAO;IACjBC,KAAK;QACHC,SAAS;QACTC,MAAM;IACR;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;QACXC,YAAY;QACZC,SAAS;QACTC,QAAQ;QACRC,SAAS;IACX;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"}
|
|
@@ -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":"
|
|
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":";0BAE0B;AAE1B,MAAMA,SAA+B;IACnCC,SAAS;QAAC;KAAyB;IACnCC,SAAS;QAAC;KAAyB;IACnCC,OAAO;QACL,GAAGC,iBAAa;IAClB;AACF;iBAESJ"}
|
|
@@ -6,8 +6,12 @@ function _export(target, all) {
|
|
|
6
6
|
});
|
|
7
7
|
}
|
|
8
8
|
_export(exports, {
|
|
9
|
-
interfaceVersion: ()
|
|
10
|
-
|
|
9
|
+
interfaceVersion: function() {
|
|
10
|
+
return interfaceVersion;
|
|
11
|
+
},
|
|
12
|
+
resolve: function() {
|
|
13
|
+
return resolve;
|
|
14
|
+
}
|
|
11
15
|
});
|
|
12
16
|
const _constants = require("../constants");
|
|
13
17
|
const interfaceVersion = 2;
|
|
@@ -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":"
|
|
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":";;;;;;;;IAEaA,gBAAgB;eAAhBA;;IAEGC,OAAO;eAAPA;;;2BAJwB;AAEjC,MAAMD,mBAAmB;AAEzB,SAASC,QAAQC,MAAc;IACpC,IAAIC,qCAA0BC,KAAKF,SAAS;QAC1C,OAAO;YAACG,OAAO;YAAMC,MAAM;QAAI;IACjC;IAEA,OAAO;QAACD,OAAO;IAAK;AACtB"}
|
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":"
|
|
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":";+BA6CA;;;eAAA;;;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;QAAK;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"}
|
|
@@ -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":"
|
|
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":";+BAeA;;;eAAA;;;AAbA,MAAMA,SAAwC;IAC5C,sCAAsC;IACtC,uCAAuC;QAAC;QAAS;YAACC,gBAAgB;QAAI;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.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "default", {
|
|
3
3
|
enumerable: true,
|
|
4
|
-
get: ()
|
|
4
|
+
get: function() {
|
|
5
|
+
return _default;
|
|
6
|
+
}
|
|
5
7
|
});
|
|
6
|
-
const
|
|
8
|
+
const _confusingbrowserglobals = require("confusing-browser-globals");
|
|
7
9
|
const config = {
|
|
8
10
|
// ESLint rules
|
|
9
11
|
'accessor-pairs': 'off',
|
|
@@ -277,7 +279,7 @@ const config = {
|
|
|
277
279
|
name: 'isNaN',
|
|
278
280
|
message: 'Use Number.isNaN instead'
|
|
279
281
|
},
|
|
280
|
-
...
|
|
282
|
+
..._confusingbrowserglobals
|
|
281
283
|
],
|
|
282
284
|
'no-restricted-imports': 'off',
|
|
283
285
|
'no-restricted-properties': [
|
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 '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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B;IACjB,mBAAmB;IACnB,eAAe;IACfC,QAAQ;QAAC;QAAS;QAAU;YAACC,aAAa,IAAI;YAAEC,uBAAuB,KAAK;QAAA;KAAE;IAC9EC,OAAO;IACP,0BAA0B;IAC1B,iBAAiB;IACjB,0BAA0B;IAC1B,iBAAiB;IACjB,uBAAuB;IACvBC,MAAM;IACN,gBAAgB;IAChB,cAAc;IACd,gBAAgB;QACd;QACA;YACEC,YAAY,IAAI;YAChBC,uBAAuB;gBAAC;gBAAQ;gBAAU;gBAAO;aAAW;YAC5DC,sBAAsB,IAAI;QAC5B;KACD;IACD,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,+BAA+B;IAC/B,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,kBAAkB;QAAC;QAAQ;KAAS;IACpCC,QAAQ;QAAC;QAAS;KAAQ;IAC1B,wBAAwB;IACxB,sBAAsB;IACtB,0BAA0B;IAC1B,wBAAwB;IACxB,eAAe;IACf,aAAa;IACb,gBAAgB;QAAC;QAAS;YAACC,uBAAuB,IAAI;QAAA;KAAE;IACxD,eAAe;IACf,aAAa;IACb,cAAc;IACd,sBAAsB;IACtBC,MAAM;AACR;MAEA,WAAelD"}
|
|
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":";+BAsYA;;;eAAA;;;yCAtYyC;AAGzC,MAAMA,SAAwC;IAC5C,eAAe;IACf,kBAAkB;IAClB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;QAAC;QAAS;YAACC,eAAe;QAAI;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;IAChB,gBAAgB;QAAC;QAAS;YAACC,eAAe;QAAI;KAAE;IAChD,YAAY;IAC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AAC;gBAAQ;gBAAU;gBAAO;aAAW;YAC5DC,sBAAsB;QACxB;KACD;IACD,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,+BAA+B;IAC/B,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,kBAAkB;QAAC;QAAQ;KAAS;IACpCC,QAAQ;QAAC;QAAS;KAAQ;IAC1B,wBAAwB;IACxB,sBAAsB;IACtB,0BAA0B;IAC1B,wBAAwB;IACxB,eAAe;IACf,aAAa;IACb,gBAAgB;QAAC;QAAS;YAACC,uBAAuB;QAAI;KAAE;IACxD,eAAe;IACf,aAAa;IACb,cAAc;IACd,sBAAsB;IACtBC,MAAM;AACR;MAEA,WAAelD"}
|
package/dist/rules/import.js
CHANGED
package/dist/rules/import.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/rules/import.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport {JS_EXTENSIONS_GLOB_PART} from '../constants';\n\nconst config: eslint.Linter.Config['rules'] = {\n // override ESLint rules\n 'no-duplicate-imports': 'off', // disallow duplicate module imports\n 'sort-imports': 'off', // enforce sorted import declarations within modules\n\n // eslint-plugin-import rules\n 'import/default': 'off', // ensure a default export is present, given a default import\n 'import/dynamic-import-chunkname': 'off', // enforce a leading comment with the webpackChunkName for dynamic imports\n 'import/export': 'error', // report any invalid exports, i.e. re-export of the same name\n 'import/exports-last': 'off', // ensure all exports appear after other statements\n 'import/extensions': 'off', // ensure consistent use of file extension within the import path\n 'import/first': 'error', // ensure all imports appear before other statements\n 'import/group-exports': 'off', // prefer named exports to be grouped together in a single export declaration\n 'import/max-dependencies': 'off', // limit the maximum number of dependencies a module can have\n 'import/no-internal-modules': 'off', // prevent importing the submodules of other modules\n 'import/named': 'error', // ensure named imports correspond to a named export in the remote file\n 'import/namespace': 'off', // ensure imported namespaces contain dereferenced properties as they are dereferenced\n 'import/newline-after-import': 'warn', // enforce a newline after import statements\n 'import/no-absolute-path': 'error', // forbid import of modules using absolute paths\n 'import/no-amd': 'error', // report AMD require and define calls\n 'import/no-anonymous-default-export': 'off', // forbid anonymous values as default exports\n 'import/no-commonjs': 'off', // report CommonJS require calls and module.exports or exports.*\n 'import/no-cycle': 'error', // forbid a module from importing a module with a dependency path back to itself\n 'import/no-default-export': 'off', // forbid default exports\n 'import/no-deprecated': 'warn', // report imported names marked with @deprecated documentation tag\n 'import/no-duplicates': 'error', // report repeated import of the same module in multiple places\n 'import/no-dynamic-require': 'error', // forbid require() calls with expressions\n 'import/no-extraneous-dependencies': [\n 'error',\n {\n devDependencies: [\n `**/*.test.${JS_EXTENSIONS_GLOB_PART}`,\n `tests/**/*.${JS_EXTENSIONS_GLOB_PART}`,\n `tools/**/*.${JS_EXTENSIONS_GLOB_PART}`,\n `./*.${JS_EXTENSIONS_GLOB_PART}`,\n ],\n optionalDependencies: false,\n },\n ], // forbid the use of extraneous packages\n 'import/no-import-module-exports': 'off', // forbid imports with CommonJS exports\n 'import/no-mutable-exports': 'error', // forbid the use of mutable exports with var or let\n 'import/no-named-as-default': 'off', // report use of exported name as identifier of default export\n 'import/no-named-as-default-member': 'error', // report use of exported name as property of default export\n 'import/no-named-default': 'error', // forbid named default exports\n 'import/no-named-export': 'off', // forbid named exports\n 'import/no-namespace': 'off', // forbid namespace (a.k.a. \"wildcard\" *) imports\n 'import/no-nodejs-modules': 'off', // no Node.js builtin modules\n 'import/no-relative-packages': 'off', // prevent importing packages through relative paths\n 'import/no-relative-parent-imports': 'off', // forbid importing modules from parent directories\n 'import/no-restricted-paths': 'off', // restrict which files can be imported in a given folder\n 'import/no-self-import': 'error', // forbid a module from importing itself\n 'import/no-unassigned-import': 'off', // forbid unassigned imports\n 'import/no-unresolved': ['error', {commonjs: true, caseSensitive: true}], // ensure imports point to a file/module that can be resolved\n 'import/no-unused-modules': 'off', // report modules without exports, or exports without matching import in another module\n 'import/no-useless-path-segments': ['error', {noUselessIndex: true}], // prevent unnecessary path segments in import and require statements\n 'import/no-webpack-loader-syntax': 'error', // forbid webpack loader syntax in imports\n 'import/unambiguous': 'off', // report potentially ambiguous parse goal (script vs. module)\n 'import/order': [\n 'warn',\n {\n groups: [['builtin', 'external']],\n 'newlines-between': 'always',\n alphabetize: {order: 'asc', caseInsensitive: true},\n },\n ], // enforce a convention in module import order\n 'import/prefer-default-export': 'off', // prefer a default export if module exports a single name\n};\n\nexport default config;\n"],"names":["config","devDependencies","JS_EXTENSIONS_GLOB_PART","optionalDependencies","commonjs","caseSensitive","noUselessIndex","groups","alphabetize","order","caseInsensitive"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/rules/import.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nimport {JS_EXTENSIONS_GLOB_PART} from '../constants';\n\nconst config: eslint.Linter.Config['rules'] = {\n // override ESLint rules\n 'no-duplicate-imports': 'off', // disallow duplicate module imports\n 'sort-imports': 'off', // enforce sorted import declarations within modules\n\n // eslint-plugin-import rules\n 'import/default': 'off', // ensure a default export is present, given a default import\n 'import/dynamic-import-chunkname': 'off', // enforce a leading comment with the webpackChunkName for dynamic imports\n 'import/export': 'error', // report any invalid exports, i.e. re-export of the same name\n 'import/exports-last': 'off', // ensure all exports appear after other statements\n 'import/extensions': 'off', // ensure consistent use of file extension within the import path\n 'import/first': 'error', // ensure all imports appear before other statements\n 'import/group-exports': 'off', // prefer named exports to be grouped together in a single export declaration\n 'import/max-dependencies': 'off', // limit the maximum number of dependencies a module can have\n 'import/no-internal-modules': 'off', // prevent importing the submodules of other modules\n 'import/named': 'error', // ensure named imports correspond to a named export in the remote file\n 'import/namespace': 'off', // ensure imported namespaces contain dereferenced properties as they are dereferenced\n 'import/newline-after-import': 'warn', // enforce a newline after import statements\n 'import/no-absolute-path': 'error', // forbid import of modules using absolute paths\n 'import/no-amd': 'error', // report AMD require and define calls\n 'import/no-anonymous-default-export': 'off', // forbid anonymous values as default exports\n 'import/no-commonjs': 'off', // report CommonJS require calls and module.exports or exports.*\n 'import/no-cycle': 'error', // forbid a module from importing a module with a dependency path back to itself\n 'import/no-default-export': 'off', // forbid default exports\n 'import/no-deprecated': 'warn', // report imported names marked with @deprecated documentation tag\n 'import/no-duplicates': 'error', // report repeated import of the same module in multiple places\n 'import/no-dynamic-require': 'error', // forbid require() calls with expressions\n 'import/no-extraneous-dependencies': [\n 'error',\n {\n devDependencies: [\n `**/*.test.${JS_EXTENSIONS_GLOB_PART}`,\n `tests/**/*.${JS_EXTENSIONS_GLOB_PART}`,\n `tools/**/*.${JS_EXTENSIONS_GLOB_PART}`,\n `./*.${JS_EXTENSIONS_GLOB_PART}`,\n ],\n optionalDependencies: false,\n },\n ], // forbid the use of extraneous packages\n 'import/no-import-module-exports': 'off', // forbid imports with CommonJS exports\n 'import/no-mutable-exports': 'error', // forbid the use of mutable exports with var or let\n 'import/no-named-as-default': 'off', // report use of exported name as identifier of default export\n 'import/no-named-as-default-member': 'error', // report use of exported name as property of default export\n 'import/no-named-default': 'error', // forbid named default exports\n 'import/no-named-export': 'off', // forbid named exports\n 'import/no-namespace': 'off', // forbid namespace (a.k.a. \"wildcard\" *) imports\n 'import/no-nodejs-modules': 'off', // no Node.js builtin modules\n 'import/no-relative-packages': 'off', // prevent importing packages through relative paths\n 'import/no-relative-parent-imports': 'off', // forbid importing modules from parent directories\n 'import/no-restricted-paths': 'off', // restrict which files can be imported in a given folder\n 'import/no-self-import': 'error', // forbid a module from importing itself\n 'import/no-unassigned-import': 'off', // forbid unassigned imports\n 'import/no-unresolved': ['error', {commonjs: true, caseSensitive: true}], // ensure imports point to a file/module that can be resolved\n 'import/no-unused-modules': 'off', // report modules without exports, or exports without matching import in another module\n 'import/no-useless-path-segments': ['error', {noUselessIndex: true}], // prevent unnecessary path segments in import and require statements\n 'import/no-webpack-loader-syntax': 'error', // forbid webpack loader syntax in imports\n 'import/unambiguous': 'off', // report potentially ambiguous parse goal (script vs. module)\n 'import/order': [\n 'warn',\n {\n groups: [['builtin', 'external']],\n 'newlines-between': 'always',\n alphabetize: {order: 'asc', caseInsensitive: true},\n },\n ], // enforce a convention in module import order\n 'import/prefer-default-export': 'off', // prefer a default export if module exports a single name\n};\n\nexport default config;\n"],"names":["config","devDependencies","JS_EXTENSIONS_GLOB_PART","optionalDependencies","commonjs","caseSensitive","noUselessIndex","groups","alphabetize","order","caseInsensitive"],"mappings":";+BAwEA;;;eAAA;;;2BAtEsC;AAEtC,MAAMA,SAAwC;IAC5C,wBAAwB;IACxB,wBAAwB;IACxB,gBAAgB;IAEhB,6BAA6B;IAC7B,kBAAkB;IAClB,mCAAmC;IACnC,iBAAiB;IACjB,uBAAuB;IACvB,qBAAqB;IACrB,gBAAgB;IAChB,wBAAwB;IACxB,2BAA2B;IAC3B,8BAA8B;IAC9B,gBAAgB;IAChB,oBAAoB;IACpB,+BAA+B;IAC/B,2BAA2B;IAC3B,iBAAiB;IACjB,sCAAsC;IACtC,sBAAsB;IACtB,mBAAmB;IACnB,4BAA4B;IAC5B,wBAAwB;IACxB,wBAAwB;IACxB,6BAA6B;IAC7B,qCAAqC;QACnC;QACA;YACEC,iBAAiB;gBACf,CAAC,UAAU,EAAEC,mCAAwB,CAAC;gBACtC,CAAC,WAAW,EAAEA,mCAAwB,CAAC;gBACvC,CAAC,WAAW,EAAEA,mCAAwB,CAAC;gBACvC,CAAC,IAAI,EAAEA,mCAAwB,CAAC;aACjC;YACDC,sBAAsB;QACxB;KACD;IACD,mCAAmC;IACnC,6BAA6B;IAC7B,8BAA8B;IAC9B,qCAAqC;IACrC,2BAA2B;IAC3B,0BAA0B;IAC1B,uBAAuB;IACvB,4BAA4B;IAC5B,+BAA+B;IAC/B,qCAAqC;IACrC,8BAA8B;IAC9B,yBAAyB;IACzB,+BAA+B;IAC/B,wBAAwB;QAAC;QAAS;YAACC,UAAU;YAAMC,eAAe;QAAI;KAAE;IACxE,4BAA4B;IAC5B,mCAAmC;QAAC;QAAS;YAACC,gBAAgB;QAAI;KAAE;IACpE,mCAAmC;IACnC,sBAAsB;IACtB,gBAAgB;QACd;QACA;YACEC,QAAQ;gBAAC;oBAAC;oBAAW;iBAAW;aAAC;YACjC,oBAAoB;YACpBC,aAAa;gBAACC,OAAO;gBAAOC,iBAAiB;YAAI;QACnD;KACD;IACD,gCAAgC;AAClC;MAEA,WAAeV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/rules/jest-formatting.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nconst config: eslint.Linter.Config['rules'] = {\n // eslint-plugin-jest-formatting\n 'jest-formatting/padding-around-all': 'warn',\n};\n\nexport default config;\n"],"names":["config"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/rules/jest-formatting.ts"],"sourcesContent":["import type eslint from 'eslint';\n\nconst config: eslint.Linter.Config['rules'] = {\n // eslint-plugin-jest-formatting\n 'jest-formatting/padding-around-all': 'warn',\n};\n\nexport default config;\n"],"names":["config"],"mappings":";+BAOA;;;eAAA;;;AALA,MAAMA,SAAwC;IAC5C,gCAAgC;IAChC,sCAAsC;AACxC;MAEA,WAAeA"}
|