eslint-config-swordcss
Advanced tools
Comparing version 0.3.0 to 0.4.0
module.exports = { | ||
env: { | ||
browser: false, | ||
commonjs: true, | ||
node: true, | ||
mocha: true, | ||
es6: true | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 12 | ||
}, | ||
globals: { | ||
__dirname: true | ||
}, | ||
extends: "eslint:recommended", | ||
rules: { | ||
quotes: [ | ||
"error", | ||
"double" | ||
], | ||
"prefer-const": "error", | ||
"no-const-assign": "error", | ||
"no-var": "error", | ||
"no-new-object": "error", | ||
"prefer-arrow-callback": "error" | ||
} | ||
env: { | ||
browser: false, | ||
node: true, | ||
mocha: true, | ||
es6: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
}, | ||
globals: { | ||
__dirname: true, | ||
}, | ||
extends: "eslint:recommended", | ||
rules: { | ||
quotes: ["error", "double"], | ||
"prefer-const": "error", | ||
"no-const-assign": "error", | ||
"no-var": "error", | ||
"no-new-object": "error", | ||
"prefer-arrow-callback": "error", | ||
}, | ||
}; |
{ | ||
"name": "eslint-config-swordcss", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Shareable ESLint Config", | ||
"main": ".eslintrc.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"format": "prettier --no-config --write ." | ||
}, | ||
"files": [ | ||
".eslintrc.js" | ||
], | ||
"repository": { | ||
@@ -25,3 +29,6 @@ "type": "git", | ||
"eslint": "7.x.x" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^2.1.2" | ||
} | ||
} |
<h1 align="center">SwordCSS ESLint Config</h1> | ||
<h2 align="center">⚔️A shareable ESLint Config⚔️</h2> | ||
<h2 align="center">⚔️A shareable ESLint Config⚔️</h2> | ||
### Overview | ||
This is an `eslint` shareable config that is used for `swordcss` projects. This extends the recommended `eslint` config. | ||
<hr /> | ||
#### Quotes | ||
Quotes must use double quotes. | ||
<hr /> | ||
#### References | ||
Use `const` or `let` instead of `var`. | ||
<hr /> | ||
#### Functions | ||
Use ES6 arrow functions when using function expressions. | ||
<hr /> | ||
#### Objects | ||
Create objects with `{}` instead of `new Object()`. |
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
2809
22
1
23