You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module.exports={parser: "@typescript-eslint/parser",// Specifies the ESLint parserparserOptions: {ecmaVersion: 2020,// Allows for the parsing of modern ECMAScript featuressourceType: "module"// Allows for the use of imports},extends: ["plugin:@typescript-eslint/recommended"// Uses the recommended rules from the @typescript-eslint/eslint-plugin],rules: {// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs// e.g. "@typescript-eslint/explicit-function-return-type": "off",}};
If you using react add the configs.
module.exports={parser: "@typescript-eslint/parser",// Specifies the ESLint parserparserOptions: {ecmaVersion: 2020,// Allows for the parsing of modern ECMAScript featuressourceType: "module",// Allows for the use of importsecmaFeatures: {jsx: true// Allows for the parsing of JSX}},settings: {react: {version: "detetct"}}extends: ["plugin:@typescript-eslint/recommended"// Uses the recommended rules from the @typescript-eslint/eslint-plugin],rules: {// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs// e.g. "@typescript-eslint/explicit-function-return-type": "off",}};
Sangat membantu!