--- /dev/null
+{
+ "extends": ["airbnb"],
+ "plugins": [],
+ "parserOptions": {
+ "sourceType": "script"
+ },
+ "env": {"browser": true},
+ "globals": {},
+ "rules": {
+ "no-console": 0,
+ "no-inner-declarations": "warn",
+ "no-var": 0,
+ "vars-on-top": 0,
+ "prefer-template": 0,
+ "prefer-arrow-callback": 0,
+ "space-before-function-paren": 0,
+ "no-plusplus": 0,
+ "prefer-destructuring": 0,
+ "no-continue": 0,
+ "func-names": 0,
+ "function-paren-newline": 0,
+ "comma-dangle": 0,
+ "object-shorthand": 0,
+ "object-curly-spacing": 0,
+ "operator-assignment": 0,
+ "no-multi-assign": 0,
+ "no-param-reassign": ["warn", { "props": false }],
+ "strict": ["error", "function"],
+ "lines-around-directive": 0,
+ "no-cond-assign": ["error", "except-parens"]
+ }
+}
+
--- /dev/null
+{
+ "name": "pukiwiki",
+ "version": "1.0.0",
+ "description": "PukiWiki client JavaScript",
+ "main": "skin/main.js",
+ "directories": {
+ "lib": "lib"
+ },
+ "scripts": {
+ "test": "eslint skin/main.js skin/search2.js"
+ },
+ "author": "umorigu",
+ "license": "GPL-2.0",
+ "devDependencies": {
+ "eslint": "*",
+ "eslint-config-airbnb": "*",
+ "eslint-plugin-import": "*",
+ "eslint-plugin-jsx-a11y": "*",
+ "eslint-plugin-react": "*"
+ }
+}
+