Skip to content

Commit 069b854

Browse files
committed
Drop react support
1 parent 90293da commit 069b854

File tree

5 files changed

+47
-233
lines changed

5 files changed

+47
-233
lines changed

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
# eslint-config-airbnb-typescript-prettier
1+
# eslint-config-airbnb-base-typescript-prettier
22

33
[![npm version][npm-image]][npm-url]
4-
[![build status][circleci-image]][circleci-url]
54
![License][license]
65

7-
Airbnb's ESLint config with TypeScript and Prettier support.
6+
Airbnb's **base** ESLint config with TypeScript and Prettier support.
7+
8+
[Always up-to-date](https://github.com/wei/pull) with it's
9+
[upstream](https://github.com/toshi-toma/eslint-config-airbnb-typescript-prettier).
810

911
# How to use
10-
Install `typescript`, `eslint` and `prettier`, `eslint-config-airbnb-typescript-prettier` and put it into your `.eslintrc.js`.
12+
Install `typescript`, `eslint` and `prettier`, `eslint-config-airbnb-base-typescript-prettier` and put it into your `.eslintrc.js`.
1113

1214
```bash
13-
$ npm install [email protected] eslint@^6.8.0 prettier@^1.18.2 eslint-config-airbnb-typescript-prettier --save-dev
15+
$ npm install [email protected] eslint@^6.8.0 prettier@^1.18.2 eslint-config-airbnb-base-typescript-prettier --save-dev
1416
```
1517

1618
`.eslintrc.js`
1719

1820
```js
1921
module.exports = {
20-
extends: "airbnb-typescript-prettier"
22+
extends: "airbnb-base-typescript-prettier"
2123
};
2224
```
2325

2426
## License
2527

26-
Open source [licensed as MIT](https://github.com/toshi-toma/eslint-config-airbnb-typescript-prettier/blob/master/LICENSE).
28+
Open source [licensed as MIT](https://github.com/datacrafts-io/eslint-config-airbnb-base-typescript-prettier/blob/master/LICENSE).
2729

28-
[npm-image]: https://img.shields.io/npm/v/eslint-config-airbnb-typescript-prettier.svg
29-
[npm-url]: https://npmjs.org/package/eslint-config-airbnb-typescript-prettier
30-
[license]: https://img.shields.io/npm/l/eslint-config-airbnb-typescript-prettier.svg
31-
[circleci-image]: https://circleci.com/gh/toshi-toma/eslint-config-airbnb-typescript-prettier.svg?style=shield
32-
[circleci-url]: https://circleci.com/gh/toshi-toma/eslint-config-airbnb-typescript-prettier
30+
[npm-image]: https://img.shields.io/npm/v/eslint-config-airbnb-base-typescript-prettier.svg
31+
[npm-url]: https://npmjs.org/package/eslint-config-airbnb-base-typescript-prettier
32+
[license]: https://img.shields.io/npm/l/eslint-config-airbnb-base-typescript-prettier.svg

index.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ module.exports = {
1212
es6: true
1313
},
1414
extends: [
15-
"airbnb",
16-
"airbnb/hooks",
15+
"airbnb-base",
1716
"plugin:@typescript-eslint/recommended",
1817
"prettier",
19-
"prettier/react",
2018
"prettier/@typescript-eslint"
2119
],
22-
plugins: ["react", "jsx-a11y", "import", "prettier", "@typescript-eslint"],
20+
plugins: ["jsx-a11y", "import", "prettier", "@typescript-eslint"],
2321
globals: {},
2422
rules: {
2523
// prettier
@@ -31,9 +29,6 @@ module.exports = {
3129
"@typescript-eslint/prefer-interface": "off",
3230
"@typescript-eslint/camelcase": "off",
3331
"@typescript-eslint/explicit-function-return-type": "off",
34-
// React
35-
"react/jsx-filename-extension": ["error", { extensions: [".tsx"] }],
36-
"react/prop-types": ["off", {}],
3732
// import
3833
"import/extensions": [
3934
"error",

package-lock.json

+20-169
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)