1.2.12 • Published 4 years ago

eslint-config-jorgy v1.2.12

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago
  1. Run npx install-peerdeps --dev eslint-config-jorgy
  2. Install ESLint plugin for VSCode
  3. Add these options to your VSCode settings:

    // This one is deprecated
    "eslint.autoFixOnSave": true,
    // Use this next one instead
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true
    },
    "[javascript]": {
      "editor.formatOnSave": false,
    },
    "[javascriptreact]": {
      "editor.formatOnSave": false
    },
    "[typescript]": {
      "editor.formatOnSave": false,
    },
    "[typescriptreact]": {
     "editor.formatOnSave": false,
    },
    "prettier.disableLanguages": ["js", "ts"],
  4. Add .eslintrc to your project. ESLint has made it next to impossible to use shared configs/plugins globally, so sadly forced to using them locally. Put this in the file:

    {
      "extends": ["jorgy"],
      "rules": {
        // Put your overrides here
      }
    }
  1. Add a tsconfig.json file to your project and add your settings. Here is our standard settings:

    {
      "compilerOptions": {
        "target": "esnext",
        "lib": ["dom", "es2017"],
        "allowJs": true,
        "skipLibCheck": true,
        "esModuleInterop": true,
        "allowSyntheticDefaultImports": true,
        "strict": true,
        "forceConsistentCasingInFileNames": true,
        "module": "esnext",
        "moduleResolution": "node",
        "resolveJsonModule": true,
        "isolatedModules": true,
        "noEmit": true,
        "jsx": "preserve",
        "sourceMap": true,
        "preserveConstEnums": true,
        "removeComments": false,
        "baseUrl": ".",
      },
      "exclude": ["node_modules"],
      "include": []
    }
1.2.12

4 years ago

1.2.11

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago