@jarsec/eslint-config 3.2.3 → 4.0.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 +9 -0
  2. package/index.js +34 -55
  3. package/package.json +18 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @jarsec/eslint-config
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 39fa095: - Remove xo and xo-typescript configurations
8
+ - Add standard-with-typescript configuration
9
+ - Remove eslint-plugin-prettier, let Prettier handle formatting in a separate step
10
+ - Remove custom TypeScript rules
11
+
3
12
  ## 3.2.3
4
13
 
5
14
  ### Patch Changes
package/index.js CHANGED
@@ -1,57 +1,36 @@
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
- env: {
20
- node: true,
21
- },
22
- extends: [
23
- "xo",
24
- "xo-typescript",
25
- "plugin:perfectionist/recommended-natural",
26
- "plugin:prettier/recommended",
27
- ],
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",
41
- parserOptions: {
42
- project: "./tsconfig.json",
43
- },
44
- plugins: [
45
- "@typescript-eslint/eslint-plugin",
46
- "import",
47
- "perfectionist",
48
- "prettier",
49
- ],
50
- rules,
51
- settings: {
52
- "import/resolver": {
53
- node: true,
54
- typescript: true,
55
- },
56
- },
57
- };
4
+ env: {
5
+ node: true
6
+ },
7
+ extends: [
8
+ 'eslint:recommended',
9
+ 'plugin:@typescript-eslint/recommended',
10
+ 'plugin:@typescript-eslint/stylistic',
11
+ 'plugin:perfectionist/recommended-natural',
12
+ 'prettier'
13
+ ],
14
+ overrides: [
15
+ {
16
+ files: ['**/*/*.{test,spec}.ts'],
17
+ rules: {
18
+ '@typescript-eslint/no-unsafe-assignment': 'off',
19
+ '@typescript-eslint/no-unsafe-call': 'off',
20
+ '@typescript-eslint/no-unsafe-member-access': 'off',
21
+ '@typescript-eslint/unbound-method': 'off'
22
+ }
23
+ }
24
+ ],
25
+ parser: '@typescript-eslint/parser',
26
+ parserOptions: {
27
+ project: './tsconfig.json'
28
+ },
29
+ plugins: ['import', 'perfectionist', '@typescript-eslint/eslint-plugin'],
30
+ settings: {
31
+ 'import/resolver': {
32
+ node: true,
33
+ typescript: true
34
+ }
35
+ }
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jarsec/eslint-config",
3
- "version": "3.2.3",
3
+ "version": "4.0.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,26 @@
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
+ "@types/node": "^20.9.1",
27
+ "eslint": "^8.53.0",
28
+ "typescript": "^5.2.2"
27
29
  },
28
30
  "peerDependencies": {
29
- "eslint": "8.53.0",
30
- "typescript": "5.2.2"
31
+ "eslint": "^8.53.0",
32
+ "typescript": "^5.2.2"
31
33
  }
32
34
  }