@jarsec/eslint-config 3.2.3 → 4.1.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 (3) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/index.js +12 -43
  3. package/package.json +19 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @jarsec/eslint-config
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a47f70d: Add @stylistic/eslint-plugin
8
+
9
+ ## 4.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 39fa095: - Remove xo and xo-typescript configurations
14
+ - Add standard-with-typescript configuration
15
+ - Remove eslint-plugin-prettier, let Prettier handle formatting in a separate step
16
+ - Remove custom TypeScript rules
17
+
3
18
  ## 3.2.3
4
19
 
5
20
  ### Patch Changes
package/index.js CHANGED
@@ -1,57 +1,26 @@
1
- /* eslint-disable @typescript-eslint/naming-convention */
2
- /* eslint-disable @typescript-eslint/no-require-imports */
3
- /* eslint-disable @typescript-eslint/no-unsafe-call */
4
-
5
- require("@rushstack/eslint-patch/modern-module-resolution");
6
-
7
- const rules = {
8
- "comma-dangle": "off",
9
- "import/first": "error",
10
- "import/newline-after-import": "error",
11
- "import/no-duplicates": "error",
12
- "no-mixed-spaces-and-tabs": "off",
13
- "no-warning-comments": "off",
14
- "object-curly-spacing": "off",
15
- "operator-linebreak": "off",
16
- };
1
+ require('@rushstack/eslint-patch/modern-module-resolution')
17
2
 
18
3
  module.exports = {
19
4
  env: {
20
5
  node: true,
21
6
  },
22
7
  extends: [
23
- "xo",
24
- "xo-typescript",
25
- "plugin:perfectionist/recommended-natural",
26
- "plugin:prettier/recommended",
8
+ 'eslint:recommended',
9
+ 'plugin:@typescript-eslint/recommended',
10
+ 'plugin:@typescript-eslint/stylistic',
11
+ 'plugin:perfectionist/recommended-natural',
12
+ 'plugin:@stylistic/disable-legacy',
13
+ 'plugin:@stylistic/recommended-extends',
27
14
  ],
28
- overrides: [
29
- {
30
- files: ["**/*/*.{test,spec}.ts"],
31
- rules: {
32
- ...rules,
33
- "@typescript-eslint/no-unsafe-assignment": "off",
34
- "@typescript-eslint/no-unsafe-call": "off",
35
- "@typescript-eslint/no-unsafe-member-access": "off",
36
- "@typescript-eslint/unbound-method": "off",
37
- },
38
- },
39
- ],
40
- parser: "@typescript-eslint/parser",
15
+ parser: '@typescript-eslint/parser',
41
16
  parserOptions: {
42
- project: "./tsconfig.json",
17
+ project: './tsconfig.json',
43
18
  },
44
- plugins: [
45
- "@typescript-eslint/eslint-plugin",
46
- "import",
47
- "perfectionist",
48
- "prettier",
49
- ],
50
- rules,
19
+ plugins: ['import', 'perfectionist', '@typescript-eslint/eslint-plugin', '@stylistic'],
51
20
  settings: {
52
- "import/resolver": {
21
+ 'import/resolver': {
53
22
  node: true,
54
23
  typescript: true,
55
24
  },
56
25
  },
57
- };
26
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jarsec/eslint-config",
3
- "version": "3.2.3",
3
+ "version": "4.1.0",
4
4
  "description": "jsec's eslint configurations",
5
5
  "author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
6
6
  "main": "index.js",
@@ -9,24 +9,27 @@
9
9
  "access": "public"
10
10
  },
11
11
  "dependencies": {
12
- "@rushstack/eslint-patch": "1.5.1",
13
- "@typescript-eslint/eslint-plugin": "6.11.0",
14
- "@typescript-eslint/parser": "6.11.0",
15
- "eslint-config-prettier": "9.0.0",
16
- "eslint-config-xo": "0.43.1",
17
- "eslint-config-xo-typescript": "1.0.1",
18
- "eslint-import-resolver-typescript": "3.6.1",
19
- "eslint-plugin-import": "2.29.0",
20
- "eslint-plugin-perfectionist": "2.4.0",
21
- "eslint-plugin-prettier": "5.0.1"
12
+ "@rushstack/eslint-patch": "^1.6.0",
13
+ "@types/node": "^20.9.3",
14
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
15
+ "@typescript-eslint/parser": "^6.12.0",
16
+ "eslint": "^8.52.0",
17
+ "eslint-config-prettier": "^9.0.0",
18
+ "eslint-config-standard-with-typescript": "^40.0.0",
19
+ "eslint-plugin-import": "^2.29.0",
20
+ "eslint-plugin-n": "^16.3.1",
21
+ "eslint-plugin-perfectionist": "^2.4.0",
22
+ "eslint-plugin-promise": "^6.1.1",
23
+ "typescript": "^5.2.2"
22
24
  },
23
25
  "devDependencies": {
24
- "@types/node": "20.9.1",
25
- "eslint": "8.53.0",
26
- "typescript": "5.2.2"
26
+ "@stylistic/eslint-plugin": "^1.4.0",
27
+ "@types/node": "^20.9.1",
28
+ "eslint": "^8.53.0",
29
+ "typescript": "^5.2.2"
27
30
  },
28
31
  "peerDependencies": {
29
- "eslint": "8.53.0",
30
- "typescript": "5.2.2"
32
+ "eslint": "^8.53.0",
33
+ "typescript": "^5.2.2"
31
34
  }
32
35
  }