eslint-config-niksy v10.0.2
eslint-config-niksy
ESLint config for my projects.
Install
npm install eslint@7 --save-dev && npx install-peerdeps eslint-config-niksy --dev
If you’re using npm <5, install this package and each peer dependancy manually or use install-peerdeps CLI.
Usage
Add this config to your .eslintrc
:
{
"extends": [
"niksy"
]
}
If you’re using presets, it’s highly recommended to apply default preset:
{
"extends": [
"niksy",
"niksy/other-preset"
]
}
Presets
In addition to default preset, there are also specific presets. You can apply
multiple presets with ESLint extends
option.
Browser
Browser specific rules.
{
"extends": [
"niksy/browser"
]
}
Next
Features usually available in next major Node.js version or latest proposals.
{
"extends": [
"niksy/next"
]
}
Testing
Rules for testing frameworks (e.g. Mocha).
{
"extends": [
"niksy/tests"
]
}
React
React specific rules.
{
"extends": [
"niksy/jsx", // For JSX rules
"niksy/react"
]
}
JSX
JSX specific rules.
{
"extends": [
"niksy/jsx"
]
}
Vue
Vue specific rules.
{
"extends": [
"niksy/jsx", // If you use JSX
"niksy/vue"
]
}
TypeScript
TypeScript specific rules.
{
"extends": [
"niksy/typescript"
]
}
License
MIT © Ivan Nikolić
2 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago