Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-swordcss

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-swordcss - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

46

.eslintrc.js
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()`.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc