@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.
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
2
  extends: [
3
- './eslintrc.js',
3
+ './eslintrc.cjs',
4
4
  ],
5
5
  };
@@ -1,4 +1,4 @@
1
- const prettierConfig = require('./prettier.config');
1
+ const prettierConfig = import('./prettier.config.cjs');
2
2
 
3
3
  module.exports = {
4
4
  extends: ['eslint:recommended'],
@@ -4,7 +4,7 @@ module.exports = {
4
4
  es6: true,
5
5
  node: true,
6
6
  },
7
- extends: ['./eslintrc.js', 'plugin:react/recommended', 'plugin:mdx/recommended', 'prettier'],
7
+ extends: ['./eslintrc.cjs', 'plugin:react/recommended', 'plugin:mdx/recommended', 'prettier'],
8
8
  rules: {
9
9
  'react/display-name': 'off',
10
10
  },
@@ -4,6 +4,6 @@ module.exports = {
4
4
  es6: true,
5
5
  node: true,
6
6
  },
7
- extends: ['./eslintrc.js'],
7
+ extends: ['./eslintrc.cjs'],
8
8
  rules: {},
9
9
  };
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@switz/eslint-config",
3
- "version": "9.6.0",
3
+ "version": "10.0.1",
4
4
  "description": "",
5
- "main": "eslintrc.js",
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.7",
17
- "@typescript-eslint/eslint-plugin": "^5.60.0",
18
- "@typescript-eslint/parser": "^5.60.0",
19
- "eslint-config-prettier": "^8.8.0",
20
- "eslint-plugin-mdx": "^2.1.0",
21
- "eslint-plugin-prettier": "^4.0.0",
22
- "eslint-plugin-react": "^7.32.2",
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": "2.8.8",
25
- "prettier-plugin-tailwindcss": "^0.3.0"
25
+ "prettier": "3.0.2",
26
+ "prettier-plugin-tailwindcss": "^0.5.3"
26
27
  },
27
28
  "devDependencies": {
28
- "eslint": "^8.44.0",
29
- "@babel/core": "^7.22.8"
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: [require('prettier-plugin-tailwindcss')],
9
+ plugins: [tailwind],
8
10
  };
@@ -4,7 +4,7 @@ module.exports = {
4
4
  es6: true,
5
5
  node: true,
6
6
  },
7
- extends: ['./eslintrc.js', 'plugin:react/recommended', 'plugin:react/jsx-runtime', 'prettier'],
7
+ extends: ['./eslintrc.cjs', 'plugin:react/recommended', 'plugin:react/jsx-runtime', 'prettier'],
8
8
  rules: {
9
9
  'react/display-name': 'off',
10
10
  },
@@ -4,5 +4,5 @@ module.exports = {
4
4
  es6: true,
5
5
  node: true,
6
6
  },
7
- extends: ['./eslintrc.js', 'plugin:tailwindcss/recommended'],
7
+ extends: ['./eslintrc.cjs', 'plugin:tailwindcss/recommended'],
8
8
  };
@@ -8,7 +8,7 @@ module.exports = {
8
8
  'plugin:@typescript-eslint/eslint-recommended',
9
9
  'plugin:@typescript-eslint/recommended',
10
10
  'prettier',
11
- './eslintrc.js',
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: {