@switz/eslint-config 9.6.0 → 10.0.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/{.eslintrc.js → .eslintrc.cjs} +1 -1
- package/{eslintrc.js → eslintrc.cjs} +1 -1
- package/{mdx.js → mdx.cjs} +1 -1
- package/{node.js → node.cjs} +1 -1
- package/package.json +14 -13
- package/{prettier.config.js → prettier.config.cjs} +3 -1
- package/{react.js → react.cjs} +1 -1
- package/{tailwind.js → tailwind.cjs} +1 -1
- package/{typescript.js → typescript.cjs} +2 -2
package/{mdx.js → mdx.cjs}
RENAMED
|
@@ -4,7 +4,7 @@ module.exports = {
|
|
|
4
4
|
es6: true,
|
|
5
5
|
node: true,
|
|
6
6
|
},
|
|
7
|
-
extends: ['./eslintrc.
|
|
7
|
+
extends: ['./eslintrc.cjs', 'plugin:react/recommended', 'plugin:mdx/recommended', 'prettier'],
|
|
8
8
|
rules: {
|
|
9
9
|
'react/display-name': 'off',
|
|
10
10
|
},
|
package/{node.js → node.cjs}
RENAMED
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@switz/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "eslintrc.
|
|
5
|
+
"main": "eslintrc.cjs",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
9
|
"eslint-check": "eslint --print-config path/to/main.js | eslint-config-prettier-check"
|
|
@@ -13,19 +14,19 @@
|
|
|
13
14
|
"eslint": ">= 5"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
|
-
"@babel/eslint-parser": "^7.22.
|
|
17
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
18
|
-
"@typescript-eslint/parser": "^
|
|
19
|
-
"eslint-config-prettier": "^
|
|
20
|
-
"eslint-plugin-mdx": "^2.
|
|
21
|
-
"eslint-plugin-prettier": "^
|
|
22
|
-
"eslint-plugin-react": "^7.
|
|
17
|
+
"@babel/eslint-parser": "^7.22.10",
|
|
18
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
19
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
20
|
+
"eslint-config-prettier": "^9.0.0",
|
|
21
|
+
"eslint-plugin-mdx": "^2.2.0",
|
|
22
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
23
|
+
"eslint-plugin-react": "^7.33.2",
|
|
23
24
|
"eslint-plugin-tailwindcss": "^3.13.0",
|
|
24
|
-
"prettier": "
|
|
25
|
-
"prettier-plugin-tailwindcss": "^0.3
|
|
25
|
+
"prettier": "3.0.2",
|
|
26
|
+
"prettier-plugin-tailwindcss": "^0.5.3"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
29
|
+
"@babel/core": "^7.22.10",
|
|
30
|
+
"eslint": "^8.47.0"
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
const tailwind = import('prettier-plugin-tailwindcss');
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
2
4
|
singleQuote: true,
|
|
3
5
|
trailingComma: 'es5',
|
|
4
6
|
printWidth: 100,
|
|
5
7
|
quoteProps: 'consistent',
|
|
6
8
|
endOfLine: 'auto',
|
|
7
|
-
plugins: [
|
|
9
|
+
plugins: [tailwind],
|
|
8
10
|
};
|
package/{react.js → react.cjs}
RENAMED
|
@@ -4,7 +4,7 @@ module.exports = {
|
|
|
4
4
|
es6: true,
|
|
5
5
|
node: true,
|
|
6
6
|
},
|
|
7
|
-
extends: ['./eslintrc.
|
|
7
|
+
extends: ['./eslintrc.cjs', 'plugin:react/recommended', 'plugin:react/jsx-runtime', 'prettier'],
|
|
8
8
|
rules: {
|
|
9
9
|
'react/display-name': 'off',
|
|
10
10
|
},
|
|
@@ -8,7 +8,7 @@ module.exports = {
|
|
|
8
8
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
9
9
|
'plugin:@typescript-eslint/recommended',
|
|
10
10
|
'prettier',
|
|
11
|
-
'./eslintrc.
|
|
11
|
+
'./eslintrc.cjs',
|
|
12
12
|
],
|
|
13
13
|
rules: {
|
|
14
14
|
'indent': 'off',
|
|
@@ -18,7 +18,7 @@ module.exports = {
|
|
|
18
18
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
19
19
|
'@typescript-eslint/camelcase': 'off',
|
|
20
20
|
'@typescript-eslint/no-use-before-define': ['error', { variables: false }],
|
|
21
|
-
'@typescript-eslint/no-empty-function': 'off'
|
|
21
|
+
'@typescript-eslint/no-empty-function': 'off',
|
|
22
22
|
},
|
|
23
23
|
parser: '@typescript-eslint/parser',
|
|
24
24
|
parserOptions: {
|