eslint-config-dolmios 1.3.5 → 1.3.6

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.
package/README.md CHANGED
@@ -18,12 +18,22 @@ Populate `.eslintrc` with the following, and code away.
18
18
  }
19
19
  ```
20
20
 
21
+ Alternatively, you can use `eslintConfig` in `package.json`.
22
+
23
+ ```json
24
+ {
25
+ "eslintConfig": {
26
+ "extends": ["dolmios"]
27
+ }
28
+ }
29
+ ```
30
+
21
31
  ### Usage with Prettier
22
32
 
23
33
  Prettier is configured to work nicely with this config, though is an optional inclusion. If you'd like to include the config, you can add it to `package.json`.
24
34
 
25
35
  ```json
26
- "prettier": "eslint-config-dolmios/configs/prettier" // or "eslint-config-dolmios/.prettierrc
36
+ "prettier": "eslint-config-dolmios/configs/prettier"
27
37
  ```
28
38
 
29
39
  #### Extending Prettier
@@ -44,7 +54,6 @@ This config also exports two TSConfig setups, `base` and `lib` respectively. The
44
54
 
45
55
  ```json
46
56
  "extends": "eslint-config-dolmios/configs/tsconfig"
47
- // "extends": "eslint-config-dolmios/configs/tsconfig/lib" (req. further config for source and dist)
48
57
  ```
49
58
 
50
59
  ## Contributing
@@ -1,31 +1,26 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
3
  "compilerOptions": {
4
- "allowJs": true,
5
- "allowSyntheticDefaultImports": true,
4
+ "module": "esnext",
5
+ "importHelpers": true,
6
6
  "declaration": true,
7
- "emitDecoratorMetadata": true,
7
+ "sourceMap": true,
8
+ "strict": true,
9
+ "noImplicitReturns": true,
10
+ "noFallthroughCasesInSwitch": true,
11
+ "noUnusedLocals": true,
12
+ "noUnusedParameters": true,
13
+ "moduleResolution": "node",
8
14
  "esModuleInterop": true,
15
+ "skipLibCheck": true,
9
16
  "forceConsistentCasingInFileNames": true,
10
- "importHelpers": true,
11
- "incremental": true,
12
- "isolatedModules": true,
17
+ "allowSyntheticDefaultImports": true,
13
18
  "jsx": "react-jsx",
14
19
  "lib": ["dom", "dom.iterable", "esnext"],
15
- "module": "esnext",
16
- "moduleResolution": "node",
17
- "noEmit": true,
18
- "noFallthroughCasesInSwitch": true,
19
- "noImplicitAny": true,
20
- "noImplicitReturns": true,
21
- "noImplicitThis": true,
22
- "noUnusedLocals": true,
23
- "noUnusedParameters": true,
20
+ "target": "es2022",
21
+ "allowJs": true,
24
22
  "resolveJsonModule": true,
25
- "skipLibCheck": true,
26
- "sourceMap": true,
27
- "strict": true,
28
- "target": "es6"
23
+ "isolatedModules": true
29
24
  },
30
25
  "display": "dolmios"
31
26
  }
File without changes
@@ -4,11 +4,10 @@
4
4
  "parser": {
5
5
  "decorators": true,
6
6
  "dynamicImport": true,
7
- "jsx": true,
8
7
  "syntax": "typescript",
9
8
  "tsx": true
10
9
  },
11
- "target": "esnext"
10
+ "target": "es2022"
12
11
  },
13
12
  "minify": false,
14
13
  "module": {
@@ -14,7 +14,7 @@
14
14
  "resolveJsonModule": true,
15
15
  "skipLibCheck": true,
16
16
  "strict": true,
17
- "target": "es6"
17
+ "target": "es2022"
18
18
  },
19
19
  "display": "dolmios"
20
20
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-config-dolmios",
3
3
  "description": " A simple ESLint setup using @typescript-eslint",
4
- "version": "1.3.5",
4
+ "version": "1.3.6",
5
5
  "author": "Jackson Dolman <mail@dolmios.com>",
6
6
  "bugs": {
7
7
  "url": "https://github.com/dolmios/eslint-config-dolmios/issues"
@@ -28,6 +28,7 @@
28
28
  "type": "git",
29
29
  "url": "git+https://github.com/dolmios/eslint-config-dolmios.git"
30
30
  },
31
+ "prettier": "./configs/prettier.json",
31
32
  "scripts": {
32
33
  "lint": "eslint --ext .js",
33
34
  "prettier": "prettier --write ."
package/tsconfig.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "extends": "./configs/tsconfig/index"
2
+ "extends": "./configs/tsconfig"
3
3
  }
package/.prettierrc DELETED
@@ -1 +0,0 @@
1
- "./configs/prettier"