eslint-config-aqua v9.2.1
eslint-config-aqua
ESLint shareable config
Install
npm i -D eslint-config-aquaUsage
Add the ESLint config to your package.json:
{
"name": "my-project",
...
"eslintConfig": {
"extends": "aqua"
}
}Or eslintrc.json:
{
"extends": "aqua"
}Targets
If you are developing with Javascript in the browser consider adding:
{
"extends": "aqua"
"env": {
"browser": true
}
}or use the platform specific configs for Node.js:
{
"extends": "aqua/node"
}or Svelte:
{
"extends": "aqua/svelte"
}or React:
{
"extends": "aqua/react"
}or any other JSX:
{
"extends": "aqua/jsx"
}or Vue.js:
{
"extends": "aqua/vue"
}Using the Vue extended config will require you to additionally install eslint-plugin-vue and babel-eslint
npm i -D babel-eslint eslint-plugin-vuePrettier usage
If you want to apply your own .prettierrc rules with support for disabling the correct rules, just add /prettier before the target name.
Also make sure you install prettier, eslint-plugin-prettier and eslint-config-prettier for this to work.
npm i -D prettier eslint-plugin-prettier eslint-config-prettier{
"extends": "aqua/prettier"
}{
"extends": "aqua/prettier/node"
}or Svelte:
{
"extends": "aqua/prettier/svelte"
}or React:
{
"extends": "aqua/prettier/react"
}or any other JSX:
{
"extends": "aqua/prettier/jsx"
}or Vue.js:
{
"extends": "aqua/prettier/vue"
}Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
eslint-config-aqua © iCrawl, Released under the MIT License. Authored and maintained by iCrawl.
GitHub @iCrawl · Twitter @iCrawlToGo
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 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
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
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