eslint-config-plus-prettier 1.0.2 → 1.1.1

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
@@ -7,24 +7,32 @@ Standard config for ESLint and Prettier. Also includes an optional TSConfig.
7
7
  npm install --save-dev eslint-config-plus-prettier
8
8
  npx install-peerdeps --dev eslint-config-plus-prettier
9
9
 
10
+ Add the following scripts to your `package.json`:
11
+
12
+ "scripts": {
13
+ "lint": "eslint . --ext .ts,.js --fix",
14
+ "format": "prettier --write ."
15
+ }
16
+
17
+ ### Configure ESLint
18
+
10
19
  Add a `.eslintrc.json` file with the following:
11
20
 
12
21
  {
13
22
  "extends": "eslint-config-plus-prettier"
14
23
  }
15
24
 
16
- Add prettier config to `package.json`:
25
+ Consider adding a `.eslintignore` file to avoid trying to lint compiled code in the `dist` folder:
17
26
 
18
- "prettier": "eslint-config-plus-prettier/.prettierrc.json"
27
+ dist
19
28
 
20
- Add the following scripts:
29
+ ### Configure Prettier
21
30
 
22
- "scripts": {
23
- "lint": "eslint . --ext .ts,.js --fix",
24
- "format": "prettier --write ."
25
- }
31
+ Add prettier config to `package.json`:
32
+
33
+ "prettier": "eslint-config-plus-prettier/.prettierrc.json"
26
34
 
27
- ## Optional: TSConfig
35
+ ### Configure TSConfig (optional)
28
36
 
29
37
  Add a `tsconfig.json` file with the following:
30
38
 
package/index.js CHANGED
@@ -6,6 +6,7 @@ module.exports = {
6
6
  'plugin:@typescript-eslint/recommended',
7
7
  ],
8
8
  rules: {
9
+ '@typescript-eslint/no-floating-promises': ['off'],
9
10
  'prefer-const': [
10
11
  'error',
11
12
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-plus-prettier",
3
- "version": "1.0.2",
3
+ "version": "1.1.1",
4
4
  "description": "Standard config for ESLint and Prettier",
5
5
  "main": "index.js",
6
6
  "files": [
package/tsconfig.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es6",
4
- "module": "commonjs",
3
+ "target": "ES6",
4
+ "module": "CommonJS",
5
+ "lib": ["ES2015"],
6
+ "sourceMap": true,
7
+ "outDir": "./dist",
5
8
  "strict": true,
9
+ "moduleResolution": "node",
6
10
  "esModuleInterop": true,
7
11
  "skipLibCheck": true,
8
- "outDir": "./dist"
12
+ "forceConsistentCasingInFileNames": true
9
13
  }
10
14
  }