<|start_filename|>rollup.config.js<|end_filename|>
import typescript from 'rollup-plugin-typescript2';
import resolve from 'rollup-plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
const pkg = require('./package.json');
let version = pkg.version;
const banner = `/* @OpenAyame/ayame-web-sdk@${version} */`;
const plugins = [
 	typescript(),
  resolve({ browser: true })
];
module.exports = [
  {
    input: 'src/ayame.ts',
    output: {
      banner: banner,
      name: 'Ayame',
      entry: 'src/',
      compact: true,
      file: 'dist/ayame.min.js',
      format: 'umd',
      sourceMap: true
    },
    plugins: [...plugins, terser()]
  },
  {
    input: 'src/ayame.ts',
    output: {
      banner: banner,
      name: 'Ayame',
      entry: 'src/',
      file: 'dist/ayame.js',
      format: 'umd',
      sourceMap: true
    },
    plugins: plugins
  }
];


<|start_filename|>.eslintrc.js<|end_filename|>
module.exports = {
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "sourceType": "module",
    "project": "./tsconfig.json"
  },
  "env": {
    "browser": true,
    "commonjs": true,
    "es6": true
  },
  "plugins": [
    "@typescript-eslint",
    "import",
    "prettier"
  ],
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier/@typescript-eslint",
    "prettier",
  ],
  "globals": {
    "process": true
  },
  "rules": {
    "prettier/prettier": [
      2,
      {
        "trailingComma": "none",
        "singleQuote": true,
        "semi": true,
        "printWidth": 120
      }
    ],
    "@typescript-eslint/no-empty-function": 0,
    "@typescript-eslint/no-explicit-any": 0,
    "@typescript-eslint/ban-ts-ignore": 0,
    "@typescript-eslint/camelcase": 0,
    "@typescript-eslint/explicit-function-return-type": 0,
    "@typescript-eslint/no-non-null-assertion": 0,
    "quotes" : [2, "single"],
    "@typescript-eslint/no-unused-vars": [2, {
      "args": "all",
      "argsIgnorePattern": "^_"
    }],
    "import/newline-after-import": 2,
    "import/imports-first": 2,
    "import/no-dynamic-require": 2,
    "import/no-extraneous-dependencies": 2,
    "import/no-mutable-exports": 2,
  }
}
