eslint-config-gristow 1.0.34 → 1.0.35

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/.eslintrc.js +4 -7
  2. package/package.json +3 -3
package/.eslintrc.js CHANGED
@@ -6,7 +6,7 @@ const prettierRules = require('./prettier-rules');
6
6
  module.exports = {
7
7
  parser: '@babel/eslint-parser',
8
8
  parserOptions: {
9
- ecmaVersion: 2018,
9
+ ecmaVersion: 2022,
10
10
  project: ['./tsconfig.json'],
11
11
  allowAutomaticSingleRunInference: true,
12
12
  // Can I remove these now?
@@ -16,11 +16,11 @@ module.exports = {
16
16
  },
17
17
  requireConfigFile: false,
18
18
  },
19
+ extends: ['plugin:svelte/recommended'],
19
20
  overrides: [
20
21
  {
21
22
  files: ['*.svelte'],
22
- plugins: ['svelte3', '@typescript-eslint', 'eslint-plugin-tsdoc'],
23
- processor: 'svelte3/svelte3',
23
+ plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
24
24
  extends: ['airbnb-typescript/base'],
25
25
  rules: {
26
26
  ...rules,
@@ -54,9 +54,6 @@ module.exports = {
54
54
  // one for named, one for default, one for actual import.
55
55
  'no-duplicate-imports': 'off',
56
56
  },
57
- settings: {
58
- 'svelte3/typescript': require('typescript'),
59
- },
60
57
  },
61
58
  {
62
59
  files: ['*.js'],
@@ -118,7 +115,7 @@ module.exports = {
118
115
  jsdoc: {
119
116
  mode: 'typescript',
120
117
  },
121
- 'svelte3/ignore-styles': () => true,
118
+ 'svelte/ignore-styles': () => true,
122
119
  },
123
120
  },
124
121
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-gristow",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "Eslint settings for Greg Ristow",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -42,7 +42,7 @@
42
42
  "eslint-plugin-prettier": "^3.4.0",
43
43
  "eslint-plugin-react": "^7.24.0",
44
44
  "eslint-plugin-react-hooks": "^4.2.0",
45
- "eslint-plugin-svelte3": "^3.2.0",
45
+ "eslint-plugin-svelte": "^2.28.0",
46
46
  "eslint-plugin-tsdoc": "^0.2.14",
47
47
  "prettier": "^2.3.2"
48
48
  },
@@ -62,7 +62,7 @@
62
62
  "eslint-plugin-prettier": "^3.4.0",
63
63
  "eslint-plugin-react": "^7.24.0",
64
64
  "eslint-plugin-react-hooks": "^4.2.0",
65
- "eslint-plugin-svelte3": "^3.2.0",
65
+ "eslint-plugin-svelte": "^2.28.0",
66
66
  "eslint-plugin-tsdoc": "^0.2.14",
67
67
  "prettier": "^2.3.2",
68
68
  "typescript": "*"