9.4.1 • Published 2 years ago

eslint-config-marine v9.4.1

Weekly downloads
781
License
MIT
Repository
github
Last release
2 years ago

eslint-config-marine

Typescript ESLint shareable config

Install

npm i -D eslint-config-marine

additionally (if not already in place), you will need @typescript-eslint/parser and @typescript-eslint/eslint-plugin

npm i -D @typescript-eslint/parser @typescript-eslint/eslint-plugin

Usage

Add the ESLint config to your package.json:

{
	"name": "my-project",
	...
	"eslintConfig": {
		"extends": "marine"
	}
}

Or to eslintrc.js or eslintrc.json:

{
	"extends": "marine"
}

Targets

If you are developing with Javascript consider adding:

{
	"extends": "marine",
	"env": {
		"browser": true
	}
}

or use the platform specific configs for Node.js:

{
	"extends": "marine/node"
}

or React:

{
	"extends": "marine/react"
}

or any other JSX:

{
	"extends": "marine/jsx"
}

or Vue.js:

{
	"extends": "marine/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-vue

or Angular:

{
	"extends": "marine/angular"
}

Using the Angular extended config will require you to additionally install @angular-eslint/builder, @angular-eslint/eslint-plugin, @angular-eslint/eslint-plugin-template, and @angular-eslint/template-parser

npm i -D @angular-eslint/builder @angular-eslint/eslint-plugin @angular-eslint/eslint-plugin-template @angular-eslint/template-parser

Prettier 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": "marine/prettier"
}
{
	"extends": "marine/prettier/node"
}

or React:

{
	"extends": "marine/prettier/react"
}

or any other JSX:

{
	"extends": "marine/prettier/jsx"
}

or Vue.js:

{
	"extends": "marine/prettier/vue"
}

or Angular:

{
	"extends": "marine/prettier/angular"
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

eslint-config-marine © iCrawl, Released under the MIT License.
Authored and maintained by iCrawl.

GitHub @iCrawl · Twitter @iCrawlToGo

9.4.1

2 years ago

9.4.0

2 years ago

9.3.2

2 years ago

9.3.1

2 years ago

9.2.2

2 years ago

9.3.0

2 years ago

9.2.1

2 years ago

9.2.0

2 years ago

9.1.0

2 years ago

9.0.6

3 years ago

9.0.5

3 years ago

9.0.4

3 years ago

9.0.3

3 years ago

9.0.2

3 years ago

9.0.1

3 years ago

9.0.0

3 years ago

8.3.2

3 years ago

8.3.0

3 years ago

8.2.0

3 years ago

8.1.0

3 years ago

8.0.1

3 years ago

8.0.0

3 years ago

7.2.0

4 years ago

7.1.2

4 years ago

7.1.1

4 years ago

7.1.0

4 years ago

7.0.1

4 years ago

7.0.0

4 years ago

6.0.0

4 years ago

5.3.2

5 years ago

5.3.1

5 years ago

5.3.0

5 years ago

5.2.0

5 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.2.1

5 years ago

4.2.0

5 years ago

4.1.0

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago