@mikey-pro/eslint-config 3.1.11 → 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 +23 -1
  2. package/package.json +5 -3
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: {
@@ -192,7 +213,7 @@ module.exports = {
192
213
  },
193
214
  ],
194
215
  'vue/component-tags-order': [
195
- 'error',
216
+ 2,
196
217
  {
197
218
  order: [['script', 'template'], 'style'],
198
219
  },
@@ -395,6 +416,7 @@ module.exports = {
395
416
  '.vscode',
396
417
  '.github',
397
418
  ],
419
+ root: true,
398
420
  settings: {
399
421
  'json/sort-package-json': 'pro',
400
422
  polyfills: ['Promise'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "3.1.11",
3
+ "version": "3.2.0",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {
@@ -11,6 +11,8 @@
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",
@@ -28,10 +30,10 @@
28
30
  "eslint-plugin-md": "^1.0",
29
31
  "eslint-plugin-node": "^11.1.0",
30
32
  "eslint-plugin-prettier": "^4.0",
31
- "eslint-plugin-promise": "^5.1.1",
33
+ "eslint-plugin-promise": "^5.2.0",
32
34
  "eslint-plugin-react": "^7.27",
33
35
  "eslint-plugin-react-hooks": "^4.3",
34
- "eslint-plugin-sonarjs": "^0.10.0",
36
+ "eslint-plugin-sonarjs": "^0.11.0",
35
37
  "eslint-plugin-svelte3": "^3.2.1",
36
38
  "eslint-plugin-toml": "^0.3.0",
37
39
  "eslint-plugin-unicorn": "^39.0.0",