1.3.3 • Published 2 years ago

@itxura/eslint-config v1.3.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@itxura/eslint-config

Shareable config to lint your code with ESLint, Stylelint and Prettier .

Installation

$ npm install -D @itxura/eslint-config

Usage

Create .eslintrc.js, stylelint.config.js and .prettierrc.js config files in the root of the project:

.eslintrc.js

module.exports = {
	extends: ['@itxura/eslint-config']
}

stylelint.config.js

module.exports = {
	extends: ['@itxura/eslint-config/stylelint']
}

.prettierrc.js

module.exports = {
	...require('@itxura/eslint-config/prettier')
}

Usage with React

.eslintrc.js

module.exports = {
	extends: ['@itxura/eslint-config/react']
}

Usage with Next.js

.eslintrc.js

module.exports = {
	extends: ['@itxura/eslint-config/nextjs']
}

IDE integration

VSCode

{
	"editor.codeActionsOnSave": {
		"source.fixAll.eslint": true,
		"source.fixAll.stylelint": true
	},
	"editor.formatOnSave": true,
	"eslint.validate": [
		"javascript"
	],
	"stylelint.validate": [
		"css",
		"scss"
	],
	"css.validate": false,
	"scss.validate": false,
	"[javascript]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"[scss]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	}
}
1.3.3

2 years ago

1.2.4

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago