0.2.18 • Published 6 years ago

eslint-config-ts-react v0.2.18

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Eslint Config TS React

Eslint configuration for linting a React Typescript app using the popular AirBnB stylguide and Prettier for formatting

Getting Started

npm install --save-dev eslint-config-ts-react

eslintrc.json

{
  "extends": ["ts-react"]
}

Peer Dependencies

npm install --save-dev eslint eslint-config-airbnb eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-jest @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-prettier prettier

Note that peer dependencies ought to be installed manually as per NPM

Create React App Setup

.env

PREFLIGHT_CHECK=SKIP

*Optionally remove the following from your package.json

-  "esintConfig": {
-    "extends": "react-app"
-  }

VSCode Integration

Extensions

Settings

Locally

.vscode/settings.json

  "eslint.validate": [
    "javascript",
    "javascriptreact",
+   "typescript",
+   "typescriptreact"
  ],
Globally

settings.json ( ctrl+, )

  "eslint.validate": [
    "javascript",
    "javascriptreact",
+   "typescript",
+   "typescriptreact"
  ],
0.2.18

6 years ago

0.2.17

6 years ago

0.2.16

6 years ago

0.2.15

6 years ago

0.2.14

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago