@joondeveloper/eslint-config 0.1.0 → 0.1.1
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/base.js +2 -1
- package/next.js +54 -1
- package/node.js +22 -1
- package/package.json +5 -1
- package/react.js +21 -2
package/base.js
CHANGED
|
@@ -13,6 +13,7 @@ module.exports = {
|
|
|
13
13
|
plugins: ['@typescript-eslint'],
|
|
14
14
|
|
|
15
15
|
extends: [
|
|
16
|
+
'standard',
|
|
16
17
|
'plugin:@typescript-eslint/recommended',
|
|
17
18
|
'plugin:prettier/recommended',
|
|
18
19
|
],
|
|
@@ -41,4 +42,4 @@ module.exports = {
|
|
|
41
42
|
[require.resolve('@typescript-eslint/parser')]: ['.ts', '.tsx', '.d.ts'],
|
|
42
43
|
},
|
|
43
44
|
},
|
|
44
|
-
}
|
|
45
|
+
}
|
package/next.js
CHANGED
|
@@ -3,4 +3,57 @@ module.exports = {
|
|
|
3
3
|
'./react',
|
|
4
4
|
'next/core-web-vitals',
|
|
5
5
|
],
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
env: {
|
|
8
|
+
browser: true,
|
|
9
|
+
es2021: true,
|
|
10
|
+
jest: true,
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
parserOptions: {
|
|
14
|
+
ecmaFeatures: {
|
|
15
|
+
jsx: true,
|
|
16
|
+
},
|
|
17
|
+
ecmaVersion: 'latest',
|
|
18
|
+
sourceType: 'module',
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
plugins: ['jsx-a11y', '@typescript-eslint'],
|
|
22
|
+
|
|
23
|
+
rules: {
|
|
24
|
+
'prettier/prettier': [
|
|
25
|
+
'error',
|
|
26
|
+
{
|
|
27
|
+
printWidth: 80,
|
|
28
|
+
tabWidth: 2,
|
|
29
|
+
singleQuote: true,
|
|
30
|
+
trailingComma: 'all',
|
|
31
|
+
arrowParens: 'always',
|
|
32
|
+
semi: false,
|
|
33
|
+
endOfLine: 'auto',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
'jsx-a11y/alt-text': [
|
|
37
|
+
'warn',
|
|
38
|
+
{
|
|
39
|
+
elements: ['img'],
|
|
40
|
+
img: ['Image'],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
'jsx-a11y/aria-props': 'warn',
|
|
44
|
+
'jsx-a11y/aria-proptypes': 'warn',
|
|
45
|
+
'jsx-a11y/aria-unsupported-elements': 'warn',
|
|
46
|
+
'jsx-a11y/role-has-required-aria-props': 'warn',
|
|
47
|
+
'jsx-a11y/role-supports-aria-props': 'warn',
|
|
48
|
+
'react/no-unknown-property': 'error',
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
settings: {
|
|
52
|
+
react: {
|
|
53
|
+
version: 'detect',
|
|
54
|
+
},
|
|
55
|
+
'import/parsers': {
|
|
56
|
+
[require.resolve('@typescript-eslint/parser')]: ['.ts', '.tsx', '.d.ts'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
}
|
package/node.js
CHANGED
|
@@ -4,4 +4,25 @@ module.exports = {
|
|
|
4
4
|
env: {
|
|
5
5
|
node: true,
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
rules: {
|
|
9
|
+
'prettier/prettier': [
|
|
10
|
+
'error',
|
|
11
|
+
{
|
|
12
|
+
printWidth: 80,
|
|
13
|
+
tabWidth: 2,
|
|
14
|
+
singleQuote: true,
|
|
15
|
+
trailingComma: 'all',
|
|
16
|
+
arrowParens: 'always',
|
|
17
|
+
semi: false,
|
|
18
|
+
endOfLine: 'auto',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
settings: {
|
|
24
|
+
'import/parsers': {
|
|
25
|
+
[require.resolve('@typescript-eslint/parser')]: ['.ts', '.tsx', '.d.ts'],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joondeveloper/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "base.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
13
13
|
"@typescript-eslint/parser": "^8.18.2",
|
|
14
14
|
"eslint-config-prettier": "^9.1.0",
|
|
15
|
+
"eslint-config-standard": "^17.1.0",
|
|
16
|
+
"eslint-plugin-import": "^2.31.0",
|
|
17
|
+
"eslint-plugin-n": "^17.14.0",
|
|
18
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
15
19
|
"eslint-plugin-prettier": "^5.2.1",
|
|
16
20
|
"eslint-plugin-react": "^7.37.2",
|
|
17
21
|
"eslint-plugin-react-hooks": "^5.1.0",
|
package/react.js
CHANGED
|
@@ -11,12 +11,31 @@ module.exports = {
|
|
|
11
11
|
jest: true,
|
|
12
12
|
},
|
|
13
13
|
|
|
14
|
-
plugins: ['react'],
|
|
14
|
+
plugins: ['react', 'jsx-a11y'],
|
|
15
|
+
|
|
16
|
+
parserOptions: {
|
|
17
|
+
ecmaFeatures: {
|
|
18
|
+
jsx: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
15
21
|
|
|
16
22
|
rules: {
|
|
17
23
|
'react/react-in-jsx-scope': 'off',
|
|
18
24
|
'react/prop-types': 'off',
|
|
19
25
|
'react/self-closing-comp': 'error',
|
|
26
|
+
'react/no-unknown-property': 'error',
|
|
27
|
+
'jsx-a11y/alt-text': [
|
|
28
|
+
'warn',
|
|
29
|
+
{
|
|
30
|
+
elements: ['img'],
|
|
31
|
+
img: ['Image'],
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
'jsx-a11y/aria-props': 'warn',
|
|
35
|
+
'jsx-a11y/aria-proptypes': 'warn',
|
|
36
|
+
'jsx-a11y/aria-unsupported-elements': 'warn',
|
|
37
|
+
'jsx-a11y/role-has-required-aria-props': 'warn',
|
|
38
|
+
'jsx-a11y/role-supports-aria-props': 'warn',
|
|
20
39
|
},
|
|
21
40
|
|
|
22
41
|
settings: {
|
|
@@ -24,4 +43,4 @@ module.exports = {
|
|
|
24
43
|
version: 'detect',
|
|
25
44
|
},
|
|
26
45
|
},
|
|
27
|
-
}
|
|
46
|
+
}
|