Skip to content

Commit

Permalink
feat: support flat config system
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed Oct 18, 2023
1 parent 17c3c10 commit 3a4b3ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"files": [
"eslint-plugin-prettier.d.ts",
"eslint-plugin-prettier.js",
"recommended.js",
"worker.js"
],
"keywords": [
Expand Down
17 changes: 17 additions & 0 deletions recommended.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use strict';

const prettier = require('./eslint-plugin-prettier');
// eslint-disable-next-line n/no-unpublished-require
const prettierConfig = require('eslint-config-prettier');

module.exports = {
prettierConfig,
plugins: {
prettier,
},
rules: {
'prettier/prettier': 'error',
'arrow-body-style': 'off',
'prefer-arrow-callback': 'off',
},
};

0 comments on commit 3a4b3ec

Please sign in to comment.