2.0.0 • Published 6 months ago
@commerce7/eslint-config v2.0.0
Commerce7 ESLint configuration
A shareable config used by all Commerce7 repositories.
How to use a configuration:
Append its identifier to the extends property of the ESLint configuration file:
@commerce7/eslint-config: to lint files used everywhere (extended by all configurations below)@commerce7/eslint-config/node: to lint files executed in NodeJS@commerce7/eslint-config/mocha: to lint files executed in Mocha@commerce7/eslint-config/react: to lint files executed in React
For example, in a React application rendered server side and tested with Mocha:
// .eslintrc.js
module.exports = {
extends: ["@commerce7/eslint-config"],
overrides: [
{
files: ["*/**/*.test.js"],
extends: [
"@commerce7/eslint-config/node",
"@commerce7/eslint-config/mocha",
],
},
{
files: ["server/**/*.js"],
extends: ["@commerce7/eslint-config/node"],
},
{
files: ["src/**/*.js"],
extends: ["@commerce7/eslint-config/react"],
},
],
};2.0.0-beta.8
7 months ago
2.0.0-beta.7
7 months ago
2.0.0-beta.2
7 months ago
2.0.0-beta.1
7 months ago
2.0.0-beta.6
7 months ago
2.0.0-beta.5
7 months ago
2.0.0-beta.4
7 months ago
2.0.0
6 months ago
2.0.0-beta.3
7 months ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
5 years ago
1.1.1-beta.4
5 years ago
1.1.1-beta.3
5 years ago
1.1.1-beta.2
5 years ago
1.1.1-beta.1
5 years ago
1.1.1-beta.0
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago