added tooling (eslint, typescript and prettier)
This commit is contained in:
28
tooling/prettier/index.mjs
Normal file
28
tooling/prettier/index.mjs
Normal file
@@ -0,0 +1,28 @@
|
||||
/** @typedef {import("prettier").Config} PrettierConfig */
|
||||
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
|
||||
|
||||
/** @type { PrettierConfig | SortImportsConfig } */
|
||||
const config = {
|
||||
plugins: [
|
||||
'@ianvs/prettier-plugin-sort-imports',
|
||||
],
|
||||
importOrder: [
|
||||
'^(react/(.*)$)|^(react$)|^(react-native(.*)$)',
|
||||
'<THIRD_PARTY_MODULES>',
|
||||
'',
|
||||
'^@mixan/(.*)$',
|
||||
'',
|
||||
'^~/',
|
||||
'^[../]',
|
||||
'^[./]',
|
||||
],
|
||||
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
|
||||
importOrderTypeScriptVersion: '4.4.0',
|
||||
singleQuote: true,
|
||||
semi: true,
|
||||
trailingComma: 'es5',
|
||||
printWidth: 80,
|
||||
tabWidth: 2,
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user