6.0.40 • Published 2 years ago

@equiem/eslint-config v6.0.40

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

@equiem/eslint-config

Synopsis

This is a preset for eslint for use with TypeScript or JavaScript projects.

Installation

$ npm install --save-dev @equiem/eslint-config @equiem/prettier-config

There will be a number of peer dependencies you will also need to install.

Usage

// .eslintrc.js
module.exports = {
  root: true,
  extends: [
    "@equiem", // For TS projects or mixed TS/JS projects.
    // "@equiem/eslint-config/browser", // For projects running in the browser.
  ],
};
// .prettierrc
"@equiem/prettier-config"

Extras

Deprecation warnings for JavaScript files

As a general rule we can't enable the deprecation/deprecation rule for JavaScript files because this rule requires TypeScript type information to work. If you have a mixed TypeScript/JavaScript project then you can enable it for the JavaScript files inside your TypeScript project using the following override:

// .eslintrc.js
module.exports = {
  overrides: [
    {
      // This must be a valid path inside your TypeScript source folders.
      files: ["src/**/*.js", "src/**/*.jsx"],
      rules: { "deprecation/deprecation": "warn" },
    },
  ],
};
6.0.40

2 years ago

6.0.38

2 years ago

6.0.37

2 years ago

6.0.36

2 years ago

6.0.35

2 years ago

6.0.39

2 years ago

6.0.30

2 years ago

6.0.34

2 years ago

6.0.33

2 years ago

6.0.32

2 years ago

6.0.31

2 years ago

6.0.27

2 years ago

6.0.26

2 years ago

6.0.29

2 years ago

6.0.28

2 years ago

6.0.25

2 years ago

6.0.24

2 years ago

6.0.23

3 years ago

6.0.22

3 years ago

6.0.21

3 years ago

6.0.20

3 years ago

6.0.19

3 years ago

6.0.18

3 years ago

6.0.16

3 years ago

6.0.15

3 years ago

6.0.14

3 years ago

6.0.13

3 years ago

6.0.17

3 years ago

6.0.12

3 years ago

6.0.11

3 years ago

6.0.10

3 years ago

6.0.9

3 years ago

6.0.8

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

6.0.3

3 years ago

6.0.2

3 years ago

1.2.3

3 years ago

6.0.5

3 years ago

1.2.2

4 years ago

6.0.4

3 years ago

6.0.7

3 years ago

6.0.6

3 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago