@mikey-pro/eslint-config 3.1.8 → 3.2.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.
Files changed (2) hide show
  1. package/index.cjs +29 -1
  2. package/package.json +5 -4
package/index.cjs CHANGED
@@ -12,6 +12,27 @@ module.exports = {
12
12
  'plugin:prettier/recommended',
13
13
  ],
14
14
  overrides: [
15
+ {
16
+ files: ['*.ts', '*.tsx'],
17
+ parser: '@typescript-eslint/parser',
18
+ parserOptions: {
19
+ tsconfigRootDir: '../../../',
20
+ project: ['./tsconfig.json'],
21
+ sourceType: 'module',
22
+ ecmaVersion: 'latest',
23
+ ecmaFeatures: {
24
+ jsx: true,
25
+ },
26
+ },
27
+ plugins: ['@typescript-eslint'],
28
+ extends: [
29
+ 'plugin:@typescript-eslint/recommended',
30
+ 'plugin:@typescript-eslint/recommended-requiring-type-checking',
31
+ ],
32
+ rules: {
33
+ 'prettier/prettier': [2, { parser: 'typescript' }],
34
+ },
35
+ },
15
36
  {
16
37
  files: ['*.css'],
17
38
  rules: {
@@ -191,7 +212,13 @@ module.exports = {
191
212
  math: 'always',
192
213
  },
193
214
  ],
194
- 'prettier/prettier': [2, { parser: 'vue' }],
215
+ 'vue/component-tags-order': [
216
+ 2,
217
+ {
218
+ order: [['script', 'template'], 'style'],
219
+ },
220
+ ],
221
+ 'prettier/prettier': 0,
195
222
  },
196
223
  },
197
224
  {
@@ -389,6 +416,7 @@ module.exports = {
389
416
  '.vscode',
390
417
  '.github',
391
418
  ],
419
+ root: true,
392
420
  settings: {
393
421
  'json/sort-package-json': 'pro',
394
422
  polyfills: ['Promise'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "3.1.8",
3
+ "version": "3.2.0",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {
@@ -11,13 +11,14 @@
11
11
  "@babel/preset-env": "^7.16",
12
12
  "@html-eslint/eslint-plugin": "^0.13.0",
13
13
  "@html-eslint/parser": "^0.13.0",
14
+ "@typescript-eslint/eslint-plugin": "^5.5.0",
15
+ "@typescript-eslint/parser": "^5.5.0",
14
16
  "@vue/babel-plugin-jsx": "^1.1.1",
15
17
  "@vue/eslint-config-airbnb": "^6.0",
16
18
  "babel-preset-airbnb": "^5.0.0",
17
19
  "eslint-config-airbnb": "^19.0",
18
20
  "eslint-config-prettier": "^8.3",
19
21
  "eslint-config-standard": "^16.0.3",
20
- "eslint-config-vue": "^2.0.2",
21
22
  "eslint-plugin-compat": "^4.0",
22
23
  "eslint-plugin-css-modules": "^2.11",
23
24
  "eslint-plugin-disable-autofix": "^0.1.6",
@@ -29,10 +30,10 @@
29
30
  "eslint-plugin-md": "^1.0",
30
31
  "eslint-plugin-node": "^11.1.0",
31
32
  "eslint-plugin-prettier": "^4.0",
32
- "eslint-plugin-promise": "^5.1.1",
33
+ "eslint-plugin-promise": "^5.2.0",
33
34
  "eslint-plugin-react": "^7.27",
34
35
  "eslint-plugin-react-hooks": "^4.3",
35
- "eslint-plugin-sonarjs": "^0.10.0",
36
+ "eslint-plugin-sonarjs": "^0.11.0",
36
37
  "eslint-plugin-svelte3": "^3.2.1",
37
38
  "eslint-plugin-toml": "^0.3.0",
38
39
  "eslint-plugin-unicorn": "^39.0.0",