From a3c09f9f862a4b4abe43cbb6d1042369fb1e14ba Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 12 Mar 2024 21:57:56 +0000 Subject: add and configure import sort plugin --- .eslintrc.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '.eslintrc.js') 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', + }, } -- cgit 1.4.1