@1000ch/eslint-config
Advanced tools
Comparing version 0.3.0 to 0.4.0
10
index.js
@@ -19,3 +19,3 @@ 'use strict'; | ||
'no-cond-assign' : 'error', // Disallow Assignment in Conditional Statements | ||
'no-console' : 'error', // Disallow Use of console | ||
'no-console' : 'off', // Disallow Use of console | ||
'no-constant-condition' : 'error', // Disallow use of constant expressions in conditions | ||
@@ -55,3 +55,3 @@ 'no-control-regex' : 'error', // Disallow Controls Characters in Regular Expressions | ||
curly : 'error', // Require Following Curly Brace Conventions | ||
'default-case' : 'error', // Require Default Case in Switch Statements | ||
'default-case' : 'off', // Require Default Case in Switch Statements | ||
'dot-location' : ['error', 'property'], // Enforce newline before and after dot | ||
@@ -82,3 +82,3 @@ 'dot-notation' : 'error', // Require Dot Notation | ||
'no-lone-blocks' : 'error', // Disallow Unnecessary Nested Blocks | ||
'no-loop-func' : 'error', // Disallow Functions in Loops | ||
'no-loop-func' : 'off', // Disallow Functions in Loops | ||
'no-magic-numbers' : 'off', // Disallow Magic Numbers | ||
@@ -164,3 +164,3 @@ 'no-multi-spaces' : 'error', // Disallow multiple spaces | ||
'id-match' : 'off', // Require identifiers to match the provided regular expression | ||
indent : ['error', 2], // Specify tab or space width for your code | ||
indent : ['error', 2, { SwitchCase : 1 }], // Specify tab or space width for your code | ||
'jsx-quotes' : ['error', 'prefer-double'], // Specify whether double or single quotes should be used in JSX attributes | ||
@@ -240,3 +240,3 @@ 'key-spacing' : ['error', { beforeColon : true, afterColon : true, align : 'colon' }], // Enforce spacing between keys and values in object literal properties | ||
'prefer-arrow-callback' : 'off', // Suggest using arrow functions as callbacks | ||
'prefer-const' : 'error', // Suggest using const | ||
'prefer-const' : 'off', // Suggest using const | ||
'prefer-reflect' : 'error', // Suggest using Reflect methods where applicable | ||
@@ -243,0 +243,0 @@ 'prefer-rest-params' : 'error', // Suggest using the rest parameters instead of arguments |
{ | ||
"name": "@1000ch/eslint-config", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "ESLint config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# eslint-config | ||
:construction: | ||
My ESLint config. | ||
@@ -8,7 +8,27 @@ ## Install | ||
```sh | ||
npm install @1000ch/eslint-config | ||
npm install --save-dev @1000ch/eslint-config | ||
``` | ||
## Usage | ||
In `.eslintrc`: | ||
```json | ||
{ | ||
"extends": ["@1000ch"] | ||
} | ||
``` | ||
In `package.json`: | ||
```json | ||
{ | ||
"eslintConfig": { | ||
"extends": ["@1000ch"] | ||
} | ||
} | ||
``` | ||
## License | ||
MIT: http://1000ch.mit-license.org/ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21152
34
0