diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-03-12 21:57:56 +0000 |
---|---|---|
committer | Samuel Newman <mozzius@protonmail.com> | 2024-03-12 21:57:56 +0000 |
commit | a3c09f9f862a4b4abe43cbb6d1042369fb1e14ba (patch) | |
tree | 727ff0713592fc550e77db10ad020b852100eb3e /.eslintrc.js | |
parent | 090b35e52e3c42214bcf044a70d3658d1cf8b2de (diff) | |
download | voidsky-a3c09f9f862a4b4abe43cbb6d1042369fb1e14ba.tar.zst |
add and configure import sort plugin
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 18802cdf1..b26bee1ba 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,10 +7,18 @@ module.exports = { 'prettier', ], parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint', 'detox', 'react', 'lingui'], + plugins: [ + '@typescript-eslint', + 'detox', + 'react', + 'lingui', + 'simple-import-sort', + ], rules: { 'react/no-unescaped-entities': 0, 'react-native/no-inline-styles': 0, + 'simple-import-sort/imports': 'error', + 'simple-import-sort/exports': 'error', }, ignorePatterns: [ '**/__mocks__/*.ts', @@ -31,4 +39,8 @@ module.exports = { settings: { componentWrapperFunctions: ['observer'], }, + parserOptions: { + sourceType: 'module', + ecmaVersion: 'latest', + }, } |