2.2.0 • Published 1 year ago

@cesarcf/eslint-config v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

eslint-config

ESLint shareable config for JavaScript projects

What is eslint-config?

Shared configuration for ESLint. Follow the instructions below to easily include this configuration in another project without having to duplicate the file.

How do I install it?

npm install --save-dev @cesarcf/eslint-config

Usage

Add the following to your .eslintrc.js file:

module.exports = {
  extends: '@cesarcf'
}

Add the following to your prettier.config.js file:

module.exports = require('@cesarcf/eslint-config/prettier.config')

If you need to override a rule, your .eslintrc.js file should look like the example below.

module.exports = {
  extends: '@cesarcf',
  root: true,
  settings: {
    react: {
      version: 'detect'
    },
    'import/resolver': {
      alias: {
        map: [
          ['components', './src/components/'],
          ['assets', './src/assets/'],
          ['utils', './src/utils/'],
          ['test', './src/test/']
        ],
        extensions: ['.js', '.jsx']
      }
    }
  }
}

License

Copyright (c) 2020 Cesar Carbajo. Licensed under the MIT license.

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.2.1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago