@perfective/eslint-config 0.29.0 → 0.29.2
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.adoc +1 -2
- package/README.md +1 -2
- package/cypress.d.ts +1 -0
- package/cypress.js +3 -5
- package/index.d.ts +1732 -0
- package/index.js +11 -12
- package/jest-dom.d.ts +1 -0
- package/jest.d.ts +1 -0
- package/package.json +17 -7
- package/rules/array-func/index.d.ts +14 -0
- package/rules/cypress/index.d.ts +21 -0
- package/rules/eslint/index.d.ts +339 -0
- package/rules/eslint/layout-formatting.d.ts +64 -0
- package/rules/eslint/possible-problems.d.ts +96 -0
- package/rules/eslint/suggestions.d.ts +181 -0
- package/rules/eslint-comments/best-practices.d.ts +8 -0
- package/rules/eslint-comments/index.d.ts +21 -0
- package/rules/eslint-comments/stylistic-issues.d.ts +9 -0
- package/rules/import/helpful-warnings.d.ts +10 -0
- package/rules/import/index.d.ts +78 -0
- package/rules/import/module-systems.d.ts +10 -0
- package/rules/import/static-analysis.d.ts +26 -0
- package/rules/import/style-guide.d.ts +33 -0
- package/rules/jest/index.d.ts +124 -0
- package/rules/jest/typescript-eslint.d.ts +5 -0
- package/rules/jest-dom/index.d.ts +32 -0
- package/rules/jsdoc/index.d.ts +134 -0
- package/rules/n/index.d.ts +66 -0
- package/rules/prefer-arrow/index.d.ts +14 -0
- package/rules/promise/index.d.ts +35 -0
- package/rules/rxjs/index.d.ts +60 -0
- package/rules/security/index.d.ts +22 -0
- package/rules/simple-import-sort/index.d.ts +10 -0
- package/rules/stylistic/js/index.d.ts +197 -0
- package/rules/stylistic/jsx/index.d.ts +81 -0
- package/rules/stylistic/plus/index.d.ts +14 -0
- package/rules/stylistic/ts/index.d.ts +135 -0
- package/rules/testing-library/index.d.ts +62 -0
- package/rules/typescript-eslint/extension-rules.d.ts +113 -0
- package/rules/typescript-eslint/index.d.ts +369 -0
- package/rules/typescript-eslint/supported-rules.d.ts +253 -0
- package/rules/unicorn/index.d.ts +178 -0
- package/rxjs.d.ts +1 -0
- package/rxjs.js +3 -3
- package/testing-library.d.ts +1 -0
package/README.adoc
CHANGED
|
@@ -40,7 +40,6 @@ from issues that will be fixed automatically.
|
|
|
40
40
|
----
|
|
41
41
|
npm install --save-dev \
|
|
42
42
|
@perfective/eslint-config \
|
|
43
|
-
@babel/eslint-parser \
|
|
44
43
|
@stylistic/eslint-plugin \
|
|
45
44
|
@stylistic/eslint-plugin-js \
|
|
46
45
|
@stylistic/eslint-plugin-jsx \
|
|
@@ -94,7 +93,7 @@ npm install --save-dev \
|
|
|
94
93
|
const perfectiveEslintConfig = require('@perfective/eslint-config');
|
|
95
94
|
const perfectiveCypressConfig = require('@perfective/eslint-config/cypress');
|
|
96
95
|
const perfectiveJestConfig = require('@perfective/eslint-config/jest');
|
|
97
|
-
const perfectiveJestDomConfig = require('@perfective/eslint-config/
|
|
96
|
+
const perfectiveJestDomConfig = require('@perfective/eslint-config/jest-dom');
|
|
98
97
|
const perfectiveRxjsConfig = require('@perfective/eslint-config/rxjs');
|
|
99
98
|
const perfectiveTestingLibraryConfig = require('@perfective/eslint-config/testing-library');
|
|
100
99
|
|
package/README.md
CHANGED
|
@@ -38,7 +38,6 @@ from issues that will be fixed automatically.
|
|
|
38
38
|
```bash
|
|
39
39
|
npm install --save-dev \
|
|
40
40
|
@perfective/eslint-config \
|
|
41
|
-
@babel/eslint-parser \
|
|
42
41
|
@stylistic/eslint-plugin \
|
|
43
42
|
@stylistic/eslint-plugin-js \
|
|
44
43
|
@stylistic/eslint-plugin-jsx \
|
|
@@ -87,7 +86,7 @@ from issues that will be fixed automatically.
|
|
|
87
86
|
const perfectiveEslintConfig = require('@perfective/eslint-config');
|
|
88
87
|
const perfectiveCypressConfig = require('@perfective/eslint-config/cypress');
|
|
89
88
|
const perfectiveJestConfig = require('@perfective/eslint-config/jest');
|
|
90
|
-
const perfectiveJestDomConfig = require('@perfective/eslint-config/
|
|
89
|
+
const perfectiveJestDomConfig = require('@perfective/eslint-config/jest-dom');
|
|
91
90
|
const perfectiveRxjsConfig = require('@perfective/eslint-config/rxjs');
|
|
92
91
|
const perfectiveTestingLibraryConfig = require('@perfective/eslint-config/testing-library');
|
|
93
92
|
|
package/cypress.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cypressConfig(files?: string[]): Record<string, unknown>;
|
package/cypress.js
CHANGED
|
@@ -40,16 +40,14 @@ const no_extraneous_dependencies_1 = require("./rules/import/rules/no-extraneous
|
|
|
40
40
|
function cypressConfig(files = ['cypress/**/*.[jt]s']) {
|
|
41
41
|
return {
|
|
42
42
|
files,
|
|
43
|
-
languageOptions: Object.assign(
|
|
44
|
-
ecmaVersion: 6,
|
|
43
|
+
languageOptions: Object.assign({ sourceType: 'module', ecmaVersion: 'latest', parser: tsEslint.parser, parserOptions: {
|
|
45
44
|
ecmaFeatures: {
|
|
46
45
|
globalReturn: false,
|
|
47
46
|
impliedStrict: true,
|
|
48
47
|
},
|
|
49
|
-
|
|
50
|
-
project: './tsconfig.json',
|
|
48
|
+
projectService: true,
|
|
51
49
|
warnOnUnsupportedTypeScriptVersion: true,
|
|
52
|
-
} }),
|
|
50
|
+
} }, cypress_1.cypressOptionalConfig.languageOptions),
|
|
53
51
|
plugins: Object.assign({}, cypress_1.cypressOptionalConfig.plugins),
|
|
54
52
|
rules: Object.assign(Object.assign({}, cypress_1.cypressOptionalConfig.rules), { 'init-declarations': 'off', '@typescript-eslint/init-declarations': 'off', 'import/no-extraneous-dependencies': ['error', (0, no_extraneous_dependencies_1.cypressImportNoExtraneousDependencies)()], 'max-nested-callbacks': ['error', 4], 'new-cap': ['error', {
|
|
55
53
|
capIsNewExceptions: ['Given', 'When', 'Then', 'And', 'But', 'Before', 'After'],
|