We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1914f17 commit e345dc5Copy full SHA for e345dc5
.eslintrc.js
@@ -0,0 +1,27 @@
1
+'use strict';
2
+
3
+const fs = require('fs');
4
+const path = require('path');
5
+const PACKAGE_NAME = require('./package').name;
6
+const SYMLINK_LOCATION = path.join(__dirname, 'node_modules', PACKAGE_NAME);
7
8
+// Symlink node_modules/{package name} to this directory so that ESLint resolves this plugin name correctly.
9
+if (!fs.existsSync(SYMLINK_LOCATION)) {
10
+ fs.symlinkSync(__dirname, SYMLINK_LOCATION);
11
+}
12
13
+module.exports = {
14
+ plugins: [
15
+ 'node',
16
+ PACKAGE_NAME,
17
+ ],
18
+ extends: [
19
+ 'not-an-aardvark/node',
20
+ 'plugin:node/recommended',
21
+ 'plugin:eslint-plugin/recommended',
22
23
+ root: true,
24
+ rules: {
25
+ 'require-jsdoc': 'error',
26
+ },
27
+};
.eslintrc.yml
0 commit comments