Skip to content

Commit b5b19e6

Browse files
committed
build: fixed lint errors after previous update
1 parent 507f531 commit b5b19e6

File tree

6 files changed

+22
-29
lines changed

6 files changed

+22
-29
lines changed

.eslintrc

Lines changed: 0 additions & 22 deletions
This file was deleted.

.eslintrc.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
extends: ["@react-native-community", "prettier"],
3+
plugins: ["prettier", "react", "react-native"],
4+
parserOptions: {
5+
ecmaFeatures: {
6+
jsx: true
7+
}
8+
},
9+
rules: {
10+
"react-native/no-inline-styles": 0
11+
},
12+
env: {
13+
node: true,
14+
"react-native/react-native": true
15+
},
16+
settings: {
17+
react: {
18+
version: "latest"
19+
}
20+
}
21+
};

babel.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable import/no-commonjs */
2-
31
module.exports = {
42
presets: ['module:metro-react-native-babel-preset'],
53
};

commitlint.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable import/no-commonjs */
2-
31
module.exports = {
42
extends: ['@commitlint/config-conventional'],
53
};

example/metro.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable import/no-extraneous-dependencies, import/no-commonjs */
2-
31
const path = require('path');
42
const blacklist = require('metro-config/src/defaults/blacklist');
53
const project = require('../package.json');

src/SharedElement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SharedElement extends React.Component<SharedElementProps> {
2222

2323
render() {
2424
const {
25-
id, //eslint-disable-line no-unused-vars
25+
id, //eslint-disable-line @typescript-eslint/no-unused-vars
2626
...otherProps
2727
} = this.props;
2828
return (

0 commit comments

Comments
 (0)