eslint-config-standard
Advanced tools
Comparing version 12.0.0-alpha.0 to 12.0.0
{ | ||
"parserOptions": { | ||
"ecmaVersion": 9, | ||
"ecmaVersion": 2018, | ||
"ecmaFeatures": { | ||
@@ -160,2 +160,3 @@ "jsx": true | ||
"no-with": "error", | ||
"object-curly-spacing": ["error", "always"], | ||
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }], | ||
@@ -192,2 +193,3 @@ "one-var": ["error", { "initialized": "never" }], | ||
"import/no-duplicates": "error", | ||
"import/no-named-default": "error", | ||
"import/no-webpack-loader-syntax": "error", | ||
@@ -194,0 +196,0 @@ |
{ | ||
"name": "eslint-config-standard", | ||
"description": "JavaScript Standard Style - ESLint Shareable Config", | ||
"version": "12.0.0-alpha.0", | ||
"version": "12.0.0", | ||
"author": { | ||
@@ -14,7 +14,7 @@ "name": "Feross Aboukhadijeh", | ||
"devDependencies": { | ||
"eslint": "^5.0.0-alpha.2", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-node": "^5.2.1", | ||
"eslint-plugin-promise": "^3.6.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"eslint": "^5.0.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-plugin-node": "^7.0.0", | ||
"eslint-plugin-promise": "^4.0.0", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"tape": "^4.8.0" | ||
@@ -52,7 +52,7 @@ }, | ||
"peerDependencies": { | ||
"eslint": ">=5.0.0-alpha.2", | ||
"eslint-plugin-import": ">=2.8.0", | ||
"eslint-plugin-node": ">=5.2.1", | ||
"eslint-plugin-promise": ">=3.6.0", | ||
"eslint-plugin-standard": ">=3.0.1" | ||
"eslint": ">=5.0.0", | ||
"eslint-plugin-import": ">=2.13.0", | ||
"eslint-plugin-node": ">=7.0.0", | ||
"eslint-plugin-promise": ">=4.0.0", | ||
"eslint-plugin-standard": ">=4.0.0" | ||
}, | ||
@@ -64,4 +64,5 @@ "repository": { | ||
"scripts": { | ||
"test": "tape test/*.js" | ||
"lint": "eslint . --config=eslintrc.json", | ||
"test": "npm run lint && tape test/*.js" | ||
} | ||
} |
@@ -31,4 +31,14 @@ # eslint-config-standard [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] | ||
To use the JavaScript Standard Style shareable config, first run this: | ||
**If you want to set up the config automatically**, follow these steps in your project directory: | ||
1. `npx eslint --init` | ||
2. Select "Use a popular style guide." | ||
3. Select "Standard." | ||
4. Select a config file format. | ||
5. If prompted, confirm the installation of the necessary dependencies. | ||
The above steps will automatically set up an ESLint configuration and install the necessary dependencies for you. | ||
**If you want to set up the config manually**, run the following command: | ||
```bash | ||
@@ -38,3 +48,3 @@ npm install --save-dev eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node | ||
Then, add this to your .eslintrc file: | ||
Then, add this to your `.eslintrc` file: | ||
@@ -41,0 +51,0 @@ ``` |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
92
13923
6
198