@allthings/eslint-config 2.0.0 → 2.1.0
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/index.js +5 -0
- package/package.json +16 -15
package/index.js
CHANGED
|
@@ -309,6 +309,9 @@ module.exports = {
|
|
|
309
309
|
},
|
|
310
310
|
],
|
|
311
311
|
'react/react-in-jsx-scope': 'off',
|
|
312
|
+
'react/no-unknown-property': ['error', { ignore: ['css'] }],
|
|
313
|
+
'react/jsx-uses-react': 'error',
|
|
314
|
+
'react/jsx-uses-vars': 'error',
|
|
312
315
|
'simple-import-sort/imports': 'error',
|
|
313
316
|
'simple-import-sort/exports': 'error',
|
|
314
317
|
'sort-keys': 'error',
|
|
@@ -353,6 +356,7 @@ module.exports = {
|
|
|
353
356
|
'unicorn/prefer-set-has': 'off',
|
|
354
357
|
'unicorn/prefer-set-size': 'off',
|
|
355
358
|
'unicorn/prefer-string-replace-all': 'off',
|
|
359
|
+
'unicorn/prefer-node-protocol': 'off',
|
|
356
360
|
'unicorn/relative-url-style': 'off',
|
|
357
361
|
'unicorn/switch-case-braces': 'off',
|
|
358
362
|
'unicorn/template-indent': 'off',
|
|
@@ -364,6 +368,7 @@ module.exports = {
|
|
|
364
368
|
jsx: true,
|
|
365
369
|
},
|
|
366
370
|
ecmaVersion: 2021,
|
|
371
|
+
project: 'tsconfig.json',
|
|
367
372
|
sourceType: 'module',
|
|
368
373
|
warnOnUnsupportedTypeScriptVersion: false,
|
|
369
374
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allthings/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "ESlint shareable config for Allthings style",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -12,35 +12,36 @@
|
|
|
12
12
|
"test": "eslint test/",
|
|
13
13
|
"predeploy": "yarn test",
|
|
14
14
|
"deploy": "yarn publish --new-version $npm_package_version --tag latest --access public",
|
|
15
|
-
"postdeploy": "git push --tags origin HEAD"
|
|
15
|
+
"postdeploy": "git push --tags origin HEAD",
|
|
16
|
+
"deps": "yarn upgrade-interactive --latest"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"@rushstack/eslint-patch": "^1.
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
20
|
-
"@typescript-eslint/parser": "^6.
|
|
19
|
+
"@rushstack/eslint-patch": "^1.5.1",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^6.11.0",
|
|
21
|
+
"@typescript-eslint/parser": "^6.11.0",
|
|
21
22
|
"eslint-config-prettier": "^9.0.0",
|
|
22
23
|
"eslint-import-resolver-node": "^0.3.9",
|
|
23
|
-
"eslint-import-resolver-typescript": "^3.6.
|
|
24
|
-
"eslint-plugin-import": "^2.
|
|
25
|
-
"eslint-plugin-jest": "^27.
|
|
26
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
27
|
-
"eslint-plugin-n": "^16.1
|
|
24
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
25
|
+
"eslint-plugin-import": "^2.29.0",
|
|
26
|
+
"eslint-plugin-jest": "^27.6.0",
|
|
27
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
28
|
+
"eslint-plugin-n": "^16.3.1",
|
|
28
29
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
29
|
-
"eslint-plugin-prettier": "^5.0.
|
|
30
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
30
31
|
"eslint-plugin-react": "^7.33.2",
|
|
31
32
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
32
33
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
33
|
-
"eslint-plugin-typescript-sort-keys": "^3.
|
|
34
|
-
"eslint-plugin-unicorn": "^
|
|
34
|
+
"eslint-plugin-typescript-sort-keys": "^3.1.0",
|
|
35
|
+
"eslint-plugin-unicorn": "^49.0.0"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
38
|
"eslint": ">=8.22.0",
|
|
38
|
-
"prettier": ">=3.
|
|
39
|
+
"prettier": ">=3.1.0",
|
|
39
40
|
"typescript": ">=4"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"eslint": "^8.48.0",
|
|
43
|
-
"prettier": "^3.
|
|
44
|
+
"prettier": "^3.1.0",
|
|
44
45
|
"typescript": ">=4"
|
|
45
46
|
},
|
|
46
47
|
"keywords": [
|