
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@satazor/eslint-config
Advanced tools
My own eslint configurations.
$ npm install --save-dev @satazor/eslint-config
First you need to choose the base configuration to use:
es5
- The configuration to be used in ECMAScript 5 based projectses6
- The configuration to be used in ECMAScript 6 based projectsThen enhance it with one or more addons:
browser
- If you are going to develop code for the browser (having in mind IE >= 9)node
- If you are going to develop code for NodeJSnode-v4-es6
- If you are going to develop code for NodeJS 4.x.x with the es6
base configurationes6-modules
- If you are going to use ES6 import & export (must be used with the es6
base configuration)react
- If you are going to use React and JSX (requires eslint-plugin-react
)Finally, simply create a .eslintrc.json
file with the chosen base configuration and addons. Feel free to override rules you won't agree with. You can look at some examples bellow.
Alternatively, you can make your own configuration by using the set of rules individually. If you're interested in doing that, you can check es5.js
to see how it is done.
Cutting edge ES6 with modules in the browser, using react:
{
"root": true,
"extends": [
"@satazor/eslint-config/es6",
"@satazor/eslint-config/addons/es6-modules",
"@satazor/eslint-config/addons/browser",
"@satazor/eslint-config/addons/react"
]
}
Cutting edge ES6 with modules in NodeJS (requires babel or similar):
{
"root": true,
"extends": [
"@satazor/eslint-config/es6",
"@satazor/eslint-config/addons/es6-modules",
"@satazor/eslint-config/addons/node"
]
}
Use ES6 in NodeJS without any transpiler:
{
"root": true,
"extends": [
"@satazor/eslint-config/es6",
"@satazor/eslint-config/addons/node"
]
}
.. and if you are programming against NodeJS v4 please use:
{
"root": true,
"extends": [
"@satazor/eslint-config/es6",
"@satazor/eslint-config/addons/node"
"@satazor/eslint-config/addons/node-v4-es6"
]
}
Good old ES5 in NodeJS:
{
"root": true,
"extends": [
"@satazor/eslint-config/es5",
"@satazor/eslint-config/addons/node"
]
}
Note that by setting root
to true, we ensure that no ancestor configuration is used which also improves eslint
performance because no more file lookups need to be done.
If your file exports a single class, your filename should be exactly the name of the class. For other cases, the name of the file should be the same as the default exports (prefer camelCase).
FAQs
My own eslint configurations
The npm package @satazor/eslint-config receives a total of 0 weekly downloads. As such, @satazor/eslint-config popularity was classified as not popular.
We found that @satazor/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.