diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 65365be6..00000000 --- a/.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -# EditorConfig helps developers define and maintain consistent -# coding styles between different editors and IDEs -# editorconfig.org - -root = true - -[*] - -indent_style = space -indent_size = 2 - -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..9b26ed04 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +node_modules +lib \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..f3c142ff --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,16 @@ +module.exports = { + root: true, + extends: ['@react-native-community', 'prettier'], + rules: { + 'prettier/prettier': [ + 'error', + { + quoteProps: 'consistent', + singleQuote: true, + tabWidth: 4, + trailingComma: 'es5', + useTabs: false, + }, + ], + }, +}; diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..05244bc3 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "quoteProps": "consistent", + "singleQuote": true, + "tabWidth": 4, + "trailingComma": "es5", + "useTabs": false +} \ No newline at end of file diff --git a/package.json b/package.json index f2c28349..719c605a 100644 --- a/package.json +++ b/package.json @@ -111,29 +111,6 @@ } } }, - "eslintConfig": { - "root": true, - "extends": [ - "@react-native-community", - "prettier" - ], - "rules": { - "prettier/prettier": [ - "error", - { - "quoteProps": "consistent", - "singleQuote": true, - "tabWidth": 4, - "trailingComma": "es5", - "useTabs": false - } - ] - } - }, - "eslintIgnore": [ - "node_modules/", - "lib/" - ], "react-native-builder-bob": { "source": "src", "output": "lib",