5.2.1 • Published 7 months ago

@khanacademy/eslint-config v5.2.1

Weekly downloads
464
License
MIT
Repository
github
Last release
7 months ago

eslint-config-khan

Shared Khan Academy eslint configuration.

Quick Start

  • (yarn|pnpm) add --save-dev @khanacademy/eslint-config
  • Update your .eslintrc.js file to:
    • extend "@khanacademy"
    • include settings for "import/resolver"
  • For accessibility linting rules, extend @khanacademy/eslint-config/a11y

For monorepos the "import/resolver" settings will look like this:

    settings: {
        "import/resolver": {
            typescript: {
                project: [
                    "packages/*/tsconfig.json",
                    "packages/tsconfig-shared.json",
                ],
            },
            node: {
                project: [
                    "packages/*/tsconfig.json",
                    "packages/tsconfig-shared.json",
                ],
            },
        },
    },

For regular repos, the settings will look like this:

    settings: {
        "import/resolver": {
            typescript: {
                project: "tsconfig.json",
            },
            node: {
                project: "tsconfig.json",
            },
        },
    },
5.2.1

7 months ago

5.2.0

8 months ago

5.1.0

9 months ago

5.0.1

10 months ago

5.0.0

10 months ago

4.0.1

11 months ago

4.0.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.1

2 years ago

1.3.0

2 years ago

2.0.0

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.2.0

3 years ago

0.1.0

4 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago