0.0.1 • Published 3 years ago
@cnsjs/eslint-config-browser v0.0.1
@cnsjs/eslint-config-browser
Coredomains's ESLint configuration for browser environments.
Usage
Our default export contains a base set of ESLint rules for ES6+:
yarn add --dev \
    @cnsjs/eslint-config@^0.0.2 \
    @cnsjs/eslint-config-browser@^0.0.1 \
    eslint@^8.33.0 \
    eslint-config-prettier@^8.6.0 \
    eslint-plugin-import@^2.27.5 \
    eslint-plugin-jsdoc@^39.8.0 \
    eslint-plugin-prettier@^4.2.1 \
    prettier@^2.8.4The order in which you extend ESLint rules matters.
The @cnsjs/* eslint configs should be added to the extends array last,
with @cnsjs/eslint-config first, and @cnsjs/eslint-config-* in any
order thereafter.
module.exports = {
  root: true,
  extends: [
    // These should be added last unless you know what you're doing.
    '@cnsjs/eslint-config',
    '@cnsjs/eslint-config-browser',
  ],
};0.0.1
3 years ago