Skip to content

Commit

Permalink
Ported the configuration files to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Jun 1, 2019
1 parent 7f106c6 commit fc662fb
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .browserslistrc
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,3 @@
# https://browserl.ist # https://browserl.ist
>= 5% last 2 chrome versions
last 2 versions last 2 firefox versions
not dead
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
*.yml text *.yml text


*.ico binary *.ico binary
*.jpg binary
*.pdf binary
*.png binary *.png binary
1 change: 0 additions & 1 deletion etc/eslint.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"no-warning-comments": "warn", "no-warning-comments": "warn",
"no-with": "error", "no-with": "error",
"prefer-promise-reject-errors": "error", "prefer-promise-reject-errors": "error",
"radix": ["error", "as-needed"],
"wrap-iife": ["error", "inside"], "wrap-iife": ["error", "inside"],
"yoda": ["error", "never"], "yoda": ["error", "never"],


Expand Down
7 changes: 7 additions & 0 deletions etc/mocha.json
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"check-leaks": true,
"recursive": true,
"reporter": "spec",
"require": "esm",
"ui": "bdd"
}
5 changes: 0 additions & 5 deletions etc/mocha.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions etc/nyc.json
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"all": true,
"include": ["lib/**/*.js"],
"report-dir": "var",
"reporter": ["lcovonly"]
}
5 changes: 0 additions & 5 deletions etc/nyc.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion etc/rollup.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve'; import resolve from 'rollup-plugin-node-resolve';


export default { export default {
input: join(__dirname, '../lib/browser.mjs'), input: join(__dirname, '../lib/browser.js'),
output: {file: join(__dirname, '../build/akismet.js'), format: 'iife', name: 'akismet'}, output: {file: join(__dirname, '../build/akismet.js'), format: 'iife', name: 'akismet'},
plugins: [resolve(), commonjs({ plugins: [resolve(), commonjs({
namedExports: {'node_modules/eventemitter3/index.js': ['EventEmitter']} namedExports: {'node_modules/eventemitter3/index.js': ['EventEmitter']}
Expand Down

0 comments on commit fc662fb

Please sign in to comment.