9.0.0 • Published 30 days ago

eslint-config-neworbit v9.0.0

Weekly downloads
812
License
MIT
Repository
github
Last release
30 days ago

eslint-config-neworbit

ESLint configuration for NewOrbit

Installation

npm install eslint eslint-config-neworbit --save-dev

Setup

Add .eslintrc.json file with the following contents:

{
    "extends": [
        "neworbit"
    ]
}

Setup a lint script in your package.json something like this:

{
    ...
    "scripts": {
        ...
        "lint:typescript": "eslint \"./**/*.{ts,tsx}\""
    }
}

VS Code setup

  • Install the ESLint extension for VS Code
  • Make sure you have TypeScript files included in your settings:

        "eslint.validate": [
            "javascript",
            "javascriptreact",
            "typescript",
            "typescriptreact"
        ]
  • If your package.json and .eslintrc.json files aren't in the root directory you open in VS Code you may need to add working directories in your workspace settings:

{
    ...
    "settings": {
        ...
        "eslint.workingDirectories": [
            {
                "directory": "{FOLDER_THAT_CONTAINS_CONFIG}"
            }
        ],
    }
}

Migrating from TSLint

For mapping TSLint rule overrides in your own project to the equivalent ESLint rules please refer to the map. If you cannot find the rule simply Google it as ESLint is plugin based and there is likely a plugin offering the required functionality.

License

Made with :sparkling_heart: by NewOrbit in Oxfordshire, and licensed under the MIT Licence

9.0.0

30 days ago

8.3.0

4 months ago

8.1.0

6 months ago

8.2.0

5 months ago

8.0.0

8 months ago

7.0.0

8 months ago

6.2.0

10 months ago

6.1.0

1 year ago

6.0.0

1 year ago

5.0.0

2 years ago

4.1.4

2 years ago

4.1.3

3 years ago

4.1.2

3 years ago

4.1.1

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

1.1.0

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago