forked from iamturns/eslint-config-airbnb-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
17 lines (17 loc) · 636 Bytes
/
index.js
File metadata and controls
17 lines (17 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This file adds some React specific settings. Not using React? Use base.js instead.
module.exports = {
extends: ['./lib/shared'].map(require.resolve),
settings: {
// Append 'ts' extensions to Airbnb 'import/resolver' setting
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx', '.d.ts'],
},
},
},
rules: {
// Append 'tsx' to Airbnb 'react/jsx-filename-extension' rule
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }],
},
};