UNPKG

easy-code-formatter-styles

Version:

A package which contains the styling details for easy code formatter.

37 lines (35 loc) 817 B
// @ts-check import tseslint from 'typescript-eslint'; import tsParser from '@typescript-eslint/parser'; import prettierPlugin from 'eslint-plugin-prettier'; export default tseslint.config( tseslint.configs.recommended, { files: ['src/**/*.ts'], languageOptions: { parser: tsParser, parserOptions: { ecmaVersion: 'latest', sourceType: 'module', project: './tsconfig.json', }, }, plugins: { prettier: prettierPlugin, }, rules: { 'prettier/prettier': [ 'error', { singleQuote: true, trailingComma: 'es5', bracketSpacing: true, tabWidth: 2, useTabs: false, endOfLine: 'lf', }, ], '@typescript-eslint/no-explicit-any': 'error', }, } );